LineUIProvider
Builds and positions text-block visuals for a paragraph line, invalidating them when relevant formatting changes.
Definition
Namespace:Telerik.WinForms.Documents.UI.UIProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class LineUIProvider : IUIProvider
Inheritance: objectLineUIProvider
Implements:
Constructors
Initializes a provider for the specified paragraph line and selects its positioning anchor.
public LineUIProvider(ParagraphLineInfo info)
The line whose text visuals this provider manages.
Properties
Gets the line's layout bounds, using the first inline box for its horizontal origin.
public RectangleF BoundingRectangle { get; }
Implements:
Gets or sets the layer that hosts this line's text-block visuals.
public IUILayer ContainingLayer { get; set; }
Implements:
Gets the update context most recently supplied to GetUIElements(UILayerUpdateContext) or UpdateUI(UILayerUpdateContext).
protected UILayerUpdateContext CurrentUpdateContext { get; }
Gets whether formatting or revision-range changes require this line's visuals to be recreated.
public bool IsInvalidated { get; }
Implements:
Gets whether the first inline box was removed or no longer belongs to this line.
public bool IsRemoved { get; }
Implements:
Gets the inline box selected as the positioning anchor for this line's visuals.
protected InlineLayoutBox LeftMostBox { get; }
Gets the layout information used to build and position this line's visuals.
public ParagraphLineInfo ParagraphLineInfo { get; }
Methods
Positions the line's text blocks relative to the current view and schedules a revision-range check.
public virtual void Arrange(UILayerUpdateContext uILayerUpdateContext)
The current layer context, including its view offset.
Implements:
Lazily creates the text-block visuals for the line and returns their hosted UI elements.
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
The layer context used to create the visuals.
Returns:IEnumerable<UIElement>
The UI elements representing the line's text.
Implements:
Detaches formatting-change handlers, returns text blocks and their runs to the object pool, and clears provider state.
public virtual void ReleaseElements()
Implements:
Stores the context used by subsequent layout and release operations.
public virtual void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Implements: