ImageUIProvider
Displays an inline image in the document layer, including hyperlink interaction and clipping for section columns.
Definition
Namespace:Telerik.WinForms.Documents.UI.UIProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ImageUIProvider : HyperlinkUIProviderBase, IUIProvider
Inheritance: objectHyperlinkUIProviderBaseImageUIProvider
Implements:
Inherited Members
Constructors
Initializes a provider for the specified inline image layout box.
public ImageUIProvider(ImageLayoutBox imageBox)
The layout box whose image should be displayed.
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 image 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 layout box that supplies the inline image and its dimensions.
public ImageLayoutBox ImageBox { get; }
Gets whether the image layout box is a clone and the provider should be recreated.
public override bool IsInvalidated { get; }
Overrides:
Gets whether the associated document element has been removed.
public override bool IsRemoved { get; }
Overrides:
Gets the framework element that receives hyperlink pointer interaction.
public override FrameworkElement UIElement { get; }
Overrides:
Methods
Positions the image and clips it to the rendered column width when the section uses columns.
public override void Arrange(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Overrides:
Gets the image inside its clipping canvas, creating the image visual on the first request.
public override IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
The presenter and viewport information for the update.
Returns:IEnumerable<UIElement>
The clipping canvas that hosts the image visual.
Overrides:
Removes hyperlink handlers when present and clears the layout associations for the image visual.
public override void ReleaseElements()
Overrides:
Refreshes the image visual using the owner's current scale factor.
public override void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Overrides: