StyleUIHelper
Reads formatting values from an editor's current span and paragraph styles for UI controls.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class StyleUIHelper
Inheritance: objectStyleUIHelper
Constructors
Initializes the helper from the editor's current styles and document.
public StyleUIHelper(RadRichTextBox owner)
The editor whose current styles and document are read; this value must not be null.
Methods
Gets the captured span's font family, or null when its property source is default.
Gets the captured span's font style, except that the result is null when its font-weight property source is default.
public FontStyle? GetFontStyleOfSpanStyle()
The default-source check uses FontWeightProperty rather than FontStyleProperty.
Reports whether the captured paragraph style belongs to a bulleted list in the associated document.
Reports whether the captured paragraph style belongs to a numbered list in the associated document.
Attempts to get the captured paragraph's flow direction, but currently queries an unregistered span property and throws NullReferenceException.
public FlowDirection? GetParagraphTextFlowDirection()
The paragraph style does not register FlowDirectionProperty.