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
public FormattingSymbolLayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, FormattingSymbols symbol)
Fields
public static readonly string END_OF_CELL_SYMBOL_VISUAL
public static readonly string ENTER_SYMBOL_VISUAL
public static readonly string LINE_BREAK
public static readonly string LINE_BREAK_VISUAL
public static readonly string NON_BREAKING_SPACE_SYMBOL_VISUAL
public static readonly string PAGE_BREAK
public static readonly string PAGE_BREAK_VISUAL
public static readonly string SPACE_SYMBOL_VISUAL
public static readonly string TAB_SYMBOL_VISUAL
Properties
Represents the layout box for a formatting symbol in the Telerik Windows Documents layout system.
public FormattingSymbols FormattingSymbol { get; }
Determines whether the formatting symbol has a visual representation.
public override bool HasVisualRepresentation { get; }
Returns true if the formatting symbol is visually represented; otherwise, false.
Overrides:
Determines whether the formatting symbol has a width at the end of the line.
public override bool HasWidthAtTheEndOfLine { get; }
Overrides:
Gets a value indicating whether the current layout box represents a column break.
public bool IsColumnBreak { get; }
Gets a value indicating whether the current instance represents a formatting symbol.
public override bool IsFormattingSymbol { get; }
Overrides:
Gets a value indicating whether this formatting symbol is the last element on the line.
public bool IsLastOnLine { get; }
Gets a value indicating whether the layout box represents a line break.
public bool IsLineBreak { get; }
Gets a value indicating whether the layout box is a page break.
public bool IsPageBreak { get; }
Gets a value indicating whether the layout box represents the end of a paragraph.
public bool IsParagraphEnd { get; }
Gets a value indicating whether the formatting symbol layout box is read-only.
public override bool IsReadonly { get; }
Overrides:
Gets a value indicating whether the layout box represents a section break.
public bool IsSectionBreak { get; }
Gets a value indicating whether the formatting symbol represents a space character.
public bool IsSpace { get; }
Gets a value indicating whether the formatting symbol layout box can be split.
public override bool IsSplittable { get; }
Overrides:
Gets a value indicating whether the layout box represents a tab formatting symbol.
public bool IsTab { get; }
True if the layout box is a tab formatting symbol; otherwise, false.
Gets the count of positions contained within the layout box.
public override int PositionsCountInBox { get; }
Overrides:
Methods
Creates a sibling formatting symbol layout box for the specified span layout box.
public static FormattingSymbolLayoutBox CreateEnterSibling(SpanLayoutBox 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.
Creates a sibling formatting symbol layout box for the specified span layout box.
public static FormattingSymbolLayoutBox CreateFormattingSymbolSibling(SpanLayoutBox siblingSpan, FormattingSymbols symbol)
The span layout box to which the formatting symbol will be associated.
symbolFormattingSymbolsThe 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.
Creates a space sibling for the specified SpanLayoutBox instance.
public static FormattingSymbolLayoutBox CreateSpaceSibling(SpanLayoutBox siblingSpan)
The SpanLayoutBox for which the space sibling is to be created.
Returns:Returns a new instance of FormattingSymbolLayoutBox representing the space sibling.
Creates a tab sibling for the specified SpanLayoutBox.
public static FormattingSymbolLayoutBox CreateTabSibling(SpanLayoutBox siblingSpan)
The SpanLayoutBox to create a tab sibling for.
Returns:A new instance of FormattingSymbolLayoutBox that represents the tab sibling.
protected override BoxMeasurementInfo MeasureTextOverride(SubStringPosition subStringPosition = 0)
Overrides: