HyperlinkUIProvider
Renders hyperlink spans as text visuals and updates their text, size, and tooltip as the layout changes.
Definition
Namespace:Telerik.WinForms.Documents.UI.UIProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class HyperlinkUIProvider : HyperlinkUIProviderBase, IUIProvider
Inheritance: objectHyperlinkUIProviderBaseHyperlinkUIProvider
Implements:
Inherited Members
Constructors
Initializes a provider for the specified hyperlink span and observes its style changes.
public HyperlinkUIProvider(SpanLayoutBox spanBox)
The span layout box to render.
Properties
Gets the rectangle the layer uses to determine whether this provider intersects the current viewport.
public override RectangleF BoundingRectangle { get; }
Overrides:
Gets the context supplied when the provider's text visual was last added to a layer.
public UILayerUpdateContext CurrentUpdateContext { get; }
Gets the document inline represented by the provider and used for hyperlink navigation.
public override Inline HyperlinkInline { get; }
Overrides:
Gets the text-block visual used to display the span.
public IRadTextBlock HyperlinkTextBlock { get; }
Gets whether the observed span changed or the layout box now refers to a different span.
public override bool IsInvalidated { get; }
Overrides:
Gets whether the associated document element has been removed.
public override bool IsRemoved { get; }
Overrides:
Gets the layout box whose span is rendered by this provider.
public SpanLayoutBox SpanBox { get; }
Gets the framework element that receives hyperlink pointer interaction.
public override FrameworkElement UIElement { get; }
Overrides:
Methods
Positions the text block relative to the current view offset.
public override void Arrange(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Overrides:
Gets the text visual for the span; tab formatting symbols produce no visual element.
public override IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
The presenter and viewport information for the update.
Returns:IEnumerable<UIElement>
The span's text visual, or an empty sequence for a tab symbol.
Overrides:
Unregisters hyperlink and span-change handlers and returns the text block to the text-block pool.
public override void ReleaseElements()
Overrides:
Refreshes the displayed text and bounds, then updates the hyperlink tooltip.
public override void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Overrides: