ClassFormattingSymbolLayoutBox
Represents a layout box that contains formatting symbols within a document.
Definition
Namespace:Telerik.Windows.Documents.Layout
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class FormattingSymbolLayoutBox : SpanLayoutBox, INotifyPropertyChanged
Inheritance: objectLayoutElementLayoutBoxInlineLayoutBoxSpanLayoutBoxFormattingSymbolLayoutBox
Implements:
Inherited Members
Constructors
FormattingSymbolLayoutBox(DocumentElement, DocumentStructureCollection, FormattingSymbols)
Declaration
public FormattingSymbolLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, FormattingSymbols symbol)
Parameters
associatedDocumentElement
collection
symbol
Fields
END_OF_CELL_SYMBOL_VISUAL
Declaration
public static readonly string END_OF_CELL_SYMBOL_VISUAL
Field Value
NON_BREAKING_SPACE_SYMBOL_VISUAL
Declaration
public static readonly string NON_BREAKING_SPACE_SYMBOL_VISUAL
Field Value
Properties
FormattingSymbol
Represents the layout box for a formatting symbol in the Telerik Windows Documents layout system.
Declaration
public FormattingSymbols FormattingSymbol { get; }
Property Value
HasVisualRepresentation
Determines whether the formatting symbol has a visual representation.
Declaration
public override bool HasVisualRepresentation { get; }
Property Value
Returns true if the formatting symbol is visually represented; otherwise, false.
Overrides
HasWidthAtTheEndOfLine
Determines whether the formatting symbol has a width at the end of the line.
Declaration
public override bool HasWidthAtTheEndOfLine { get; }
Property Value
Overrides
IsColumnBreak
Gets a value indicating whether the current layout box represents a column break.
IsFormattingSymbol
Gets a value indicating whether the current instance represents a formatting symbol.
Declaration
public override bool IsFormattingSymbol { get; }
Property Value
Overrides
IsLastOnLine
Gets a value indicating whether this formatting symbol is the last element on the line.
IsLineBreak
Gets a value indicating whether the layout box represents a line break.
IsPageBreak
Gets a value indicating whether the layout box is a page break.
IsParagraphEnd
Gets a value indicating whether the layout box represents the end of a paragraph.
IsReadonly
Gets a value indicating whether the formatting symbol layout box is read-only.
Declaration
public override bool IsReadonly { get; }
Property Value
Overrides
IsSectionBreak
Gets a value indicating whether the layout box represents a section break.
IsSpace
Gets a value indicating whether the formatting symbol represents a space character.
IsSplittable
Gets a value indicating whether the formatting symbol layout box can be split.
Declaration
public override bool IsSplittable { get; }
Property Value
Overrides
IsTab
Gets a value indicating whether the layout box represents a tab formatting symbol.
Declaration
public bool IsTab { get; }
Property Value
True if the layout box is a tab formatting symbol; otherwise, false.
PositionsCountInBox
Gets the count of positions contained within the layout box.
Declaration
public override int PositionsCountInBox { get; }
Property Value
Overrides
Methods
CreateEnterSibling(SpanLayoutBox)
Creates a sibling formatting symbol layout box for the specified span layout box.
Declaration
public static FormattingSymbolLayoutBox CreateEnterSibling(SpanLayoutBox siblingSpan)
Parameters
siblingSpan
The span layout box for which to create a sibling formatting symbol layout box.
Returns
A new instance of FormattingSymbolLayoutBox that serves as a sibling to the provided span layout box.
CreateFormattingSymbolSibling(SpanLayoutBox, FormattingSymbols)
Creates a sibling formatting symbol layout box for the specified span layout box.
Declaration
public static FormattingSymbolLayoutBox CreateFormattingSymbolSibling(SpanLayoutBox siblingSpan, FormattingSymbols symbol)
Parameters
siblingSpan
The span layout box to which the formatting symbol will be associated.
symbol
The formatting symbol to create a sibling layout box for.
Returns
A new instance of the FormattingSymbolLayoutBox that acts as a sibling to the specified span layout box.
CreateSpaceSibling(SpanLayoutBox)
Creates a space sibling for the specified SpanLayoutBox instance.
Declaration
public static FormattingSymbolLayoutBox CreateSpaceSibling(SpanLayoutBox siblingSpan)
Parameters
siblingSpan
The SpanLayoutBox for which the space sibling is to be created.
Returns
Returns a new instance of FormattingSymbolLayoutBox representing the space sibling.
CreateTabSibling(SpanLayoutBox)
Creates a tab sibling for the specified SpanLayoutBox.
Declaration
public static FormattingSymbolLayoutBox CreateTabSibling(SpanLayoutBox siblingSpan)
Parameters
siblingSpan
The SpanLayoutBox to create a tab sibling for.
Returns
A new instance of FormattingSymbolLayoutBox that represents the tab sibling.
GetFormattingHashCode(Span)
Gets the formatting hash code for the specified span.
MeasureTextOverride(SubStringPosition)
Declaration
protected override BoxMeasurementInfo MeasureTextOverride(SubStringPosition subStringPosition = 0)
Parameters
subStringPosition
SubStringPosition
Returns
Overrides