Provides a pooled visual for a floating image block and positions it relative to the current view.
Definition
Namespace:Telerik.WinForms.Documents.UI.UIProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class FloatingImageUIProvider : IUIProvider
Inheritance: objectFloatingImageUIProvider
Implements:
Constructors
Initializes a provider for a floating image layout box.
public FloatingImageUIProvider(FloatingBlockLayoutBox floatingImageBox)
The floating block whose content is an image.
Properties
Gets the floating image's content bounds used by the layer's viewport-visibility check.
public RectangleF BoundingRectangle { get; }
Implements:
Gets or sets the layer to which the image visual is attached.
public IUILayer ContainingLayer { get; set; }
Implements:
Gets the context supplied when the provider's image visual was last added to a layer.
public UILayerUpdateContext CurrentUpdateContext { get; }
Gets the floating-block layout box associated with this provider.
public FloatingBlockLayoutBox FloatingBox { get; }
Gets the layout box that supplies the image content.
public ImageLayoutBox ImageBox { get; }
Gets whether the provider should be recreated; after the image visual is created, this reflects whether the floating box is a clone.
public bool IsInvalidated { get; protected set; }
Implements:
Methods
Positions the image using its layout bounds, with a different vertical coordinate when the floating box is a clone.
public void Arrange(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Implements:
Gets the image visual, creating it from the object pool on the first request.
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
The presenter and viewport information for the update.
Returns:IEnumerable<UIElement>
The floating image visual to add to the layer.
Implements:
Clears the visual's layout association and returns it to the context's object pool.
public void ReleaseElements()
Implements:
Refreshes the image visual using the owner's current scale factor.
public virtual void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
The current layer context.
Implements: