New to Telerik UI for WinForms? Start a free 30-day trial

IUIProvider

Interface

Supplies visual elements to a UI layer and participates in its update, arrangement, and release lifecycle.

Definition

Namespace:Telerik.WinForms.Documents.UI.UIProviders

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public interface IUIProvider

Properties

Gets the rectangle the layer uses to determine whether this provider intersects the current viewport.

C#
RectangleF BoundingRectangle { get; }

Gets or sets the layer to which this provider's visual elements are attached.

C#
IUILayer ContainingLayer { get; set; }

Gets whether the layer should discard this provider and obtain a current provider on its next update.

C#
bool IsInvalidated { get; }

Gets whether the provider's source element has been removed from the document or layout.

C#
bool IsRemoved { get; }

Methods

Positions and sizes the provider's existing visual elements within the layer.

C#
void Arrange(UILayerUpdateContext uiLayerUpdateContext)
Parameters:uiLayerUpdateContextUILayerUpdateContext

The context containing the current viewport and view offset.

Gets the visual elements to add to the layer for the supplied update context.

C#
IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The presenter and viewport information for this layer update.

Returns:

IEnumerable<UIElement>

The elements hosted by the layer for this provider.

Releases or detaches the provider's visual elements before the provider is removed from its registry.

C#
void ReleaseElements()

Updates the provider's existing visual elements for a new layer context.

C#
void UpdateUI(UILayerUpdateContext uiLayerUpdateContext)
Parameters:uiLayerUpdateContextUILayerUpdateContext

The current presenter and viewport information.