New to Telerik UI for WinForms? Start a free 30-day trial

Creates and positions the visual marker for a formatting-symbol layout box.

Definition

Constructors

Initializes a provider for the specified formatting-symbol layout box.

C#
public FormattingSymbolUIProvider(FormattingSymbolLayoutBox symbolBox)
Parameters:symbolBoxFormattingSymbolLayoutBox

The layout box whose formatting symbol should be rendered.

Properties

Gets the pooled text block that renders the formatting-symbol marker.

C#
public IRadTextBlock FormattingSymbolTextBlock { get; }

Gets whether the marker must be recreated because formatting or its associated span or paragraph changed. Section-break markers are always treated as invalidated.

C#
public override bool IsInvalidated { get; }

Overrides: FormattingSymbolUIProviderBase.IsInvalidated

Methods

Positions the marker relative to its layout box and view offset, centering and clipping tab markers as needed.

C#
public override void Arrange(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The current layer context.

Overrides: FormattingSymbolUIProviderBase.Arrange(UILayerUpdateContext)

Lazily creates the marker text block and returns its UI element.

C#
public override IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The current layer context.

Returns:

IEnumerable<UIElement>

The UI element representing the formatting symbol.

Overrides: FormattingSymbolUIProviderBase.GetUIElements(UILayerUpdateContext)

Clears transient visual transforms and clipping, then returns the text block to the context's object pool.

C#
public override void ReleaseElements()

Overrides: FormattingSymbolUIProviderBase.ReleaseElements()