Class
FloatingDrawingUIProvider

Provides the user interface elements for managing floating drawings within Telerik's document viewer.

Definition

Namespace:Telerik.Windows.Documents.UI.UIProviders

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public abstract class FloatingDrawingUIProvider : IUIProvider

Inheritance: objectFloatingDrawingUIProvider

Derived Classes: FloatingImageUIProvider

Implements: IUIProvider

Constructors

FloatingDrawingUIProvider(FloatingBlockLayoutBox)

Declaration

cs-api-definition
public FloatingDrawingUIProvider(FloatingBlockLayoutBox floatingBox)

Parameters

floatingBox

FloatingBlockLayoutBox

Properties

BoundingRectangle

Gets the bounding rectangle of the floating drawing elements in the document.

Declaration

cs-api-definition
public RectangleF BoundingRectangle { get; }

Property Value

RectangleF

Implements IUIProvider.BoundingRectangle

ContainingLayer

Gets the layer that contains the floating drawing elements.

Declaration

cs-api-definition
public IUILayer ContainingLayer { get; set; }

Property Value

IUILayer

The containing layer as a IUILayer instance.

Implements IUIProvider.ContainingLayer

CurrentUpdateContext

Gets the current update context for the FloatingDrawingUIProvider. This property provides access to the context used during updates, allowing for the management and modification of drawing elements.

Declaration

cs-api-definition
public UILayerUpdateContext CurrentUpdateContext { get; protected set; }

Property Value

UILayerUpdateContext

DrawingBox

Represents the drawing box provided by the FloatingDrawingUIProvider, which encapsulates the functionality for handling drawing elements within the user interface.

Declaration

cs-api-definition
public DrawingLayoutBox DrawingBox { get; protected set; }

Property Value

DrawingLayoutBox

Element

Represents the element associated with the FloatingDrawingUIProvider, which is responsible for handling user interface interactions related to floating drawings in the document.

Declaration

cs-api-definition
public UIElement Element { get; protected set; }

Property Value

UIElement

FloatingBox

Represents a floating box in the FloatingDrawingUIProvider, which is used for managing the positioning and appearance of floating drawings in the user interface.

Declaration

cs-api-definition
public FloatingBlockLayoutBox FloatingBox { get; protected set; }

Property Value

FloatingBlockLayoutBox

IsInvalidated

Gets a value indicating whether the FloatingDrawingUIProvider is invalidated.

Declaration

cs-api-definition
public bool IsInvalidated { get; }

Property Value

bool

Implements IUIProvider.IsInvalidated

IsRemoved

Gets a value indicating whether the floating drawing UI provider has been removed.

Declaration

cs-api-definition
public bool IsRemoved { get; }

Property Value

bool

Implements IUIProvider.IsRemoved

Methods

Arrange(UILayerUpdateContext)

Arranges the floating drawing UI elements within the specified update context.

Declaration

cs-api-definition
public void Arrange(UILayerUpdateContext uILayerUpdateContext)

Parameters

uILayerUpdateContext

UILayerUpdateContext

The update context that contains information about the layer updates.

Implements IUIProvider.Arrange(UILayerUpdateContext)

CreateUIElement()

Declaration

cs-api-definition
protected abstract UIElement CreateUIElement()

Returns

UIElement

GetUIElements(UILayerUpdateContext)

Retrieves the user interface elements for floating drawings.

Declaration

cs-api-definition
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)

Parameters

context

UILayerUpdateContext

The context that contains information about the updates to the UI layer.

Returns

IEnumerable<UIElement>

A collection of UI elements representing the floating drawings.

Implements IUIProvider.GetUIElements(UILayerUpdateContext)

ReleaseElements()

Releases any resources or elements associated with the FloatingDrawingUIProvider.

Declaration

cs-api-definition
public void ReleaseElements()

Implements IUIProvider.ReleaseElements()

UpdateRecycledUIElement()

Declaration

cs-api-definition
protected abstract void UpdateRecycledUIElement()

UpdateUI(UILayerUpdateContext)

Updates the user interface elements associated with floating drawings.

Declaration

cs-api-definition
public abstract void UpdateUI(UILayerUpdateContext uILayerUpdateContext)

Parameters

uILayerUpdateContext

UILayerUpdateContext

Implements IUIProvider.UpdateUI(UILayerUpdateContext)