ClassBreak
Represents a break element in RadDocument content.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public sealed class Break : Span
Inheritance: objectDocumentElementInlineSpanBreak
Inherited Members
Constructors
Break()
Initializes a new instance of the Break class of type LineBreak.
Declaration
public Break()
Break(BreakType)
Initializes a new instance of the Break class.
Declaration
public Break(BreakType type)
Parameters
type
The break type.
Properties
Methods
CopyFromStartOfInlineToEndPosition(DocumentPosition)
Creates a new span which is a copy of the contents between the start of the current instance and a specified end position.
This method returns null when invoked for Break elements.
Declaration
public override Inline CopyFromStartOfInlineToEndPosition(DocumentPosition endPosition)
Parameters
endPosition
The end position.
Returns
null for Break objects.
Overrides
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another document element to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
fromElement
From element.
Overrides
CreateDeepCopy()
Creates a deep copy of the element.
Declaration
public override DocumentElement CreateDeepCopy()
Returns
The copied element.
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a LayoutBox for this element.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
documentCollection
The document collection.
Returns
Exceptions
Unknown break type.
Overrides
CreateNewElementInstance()
Creates a new Break instance.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
The new Break instance.
Overrides
CreateShallowCopy()
Creates a shallow copy of the element.
Declaration
public override DocumentElement CreateShallowCopy()
Returns
The copied element.
Overrides
HasSameStyle(Span, bool, bool)
Determines whether the element has the same style as another Span. This method always returns false when used with a Break element.
Declaration
public override bool HasSameStyle(Span other, bool compareFlowDirection = false, bool ignoreStyle = false)
Parameters
other
The other.
compareFlowDirection
if set to true the FlowDirection is compared as well.
ignoreStyle
if set to true the name of the style applied to the spans is not compared.
Returns
This method always returns false when used with a Break element.
Overrides