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

Hosts the visual element supplied by a document UI-element layout box without taking ownership of that element.

Definition

Namespace:Telerik.WinForms.Documents.UI.UIProviders

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class UIContainerUIProvider : IUIProvider

Inheritance: objectUIContainerUIProvider

Implements: IUIProvider

Constructors

Initializes a provider for the specified UI-element layout box.

C#
public UIContainerUIProvider(UIElementLayoutBox elementBox)
Parameters:elementBoxUIElementLayoutBox

The layout box whose element should be hosted.

Properties

Gets the layout box bounds used by the layer's viewport-visibility check.

C#
public RectangleF BoundingRectangle { get; }

Implements: IUIProvider.BoundingRectangle

Gets or sets the layer to which the hosted element is attached.

C#
public IUILayer ContainingLayer { get; set; }

Implements: IUIProvider.ContainingLayer

Gets whether the provider is invalidated; this implementation always returns false.

C#
public bool IsInvalidated { get; }

Implements: IUIProvider.IsInvalidated

Gets whether the document layout box has been removed.

C#
public bool IsRemoved { get; }

Implements: IUIProvider.IsRemoved

Gets the element supplied by UIElementBox.

C#
public UIElement UIElement { get; }

Gets the layout box that supplies the hosted visual element.

C#
public UIElementLayoutBox UIElementBox { get; }

Methods

Positions the hosted element using its layout-box bounds and the view offset.

C#
public void Arrange(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The current layer context.

Implements: IUIProvider.Arrange(UILayerUpdateContext)

Gets the element supplied by the layout box for insertion into the layer.

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

The current layer context.

Returns:

IEnumerable<UIElement>

The hosted element.

Implements: IUIProvider.GetUIElements(UILayerUpdateContext)

Does nothing because the layout box, rather than this provider, owns the hosted element.

C#
public void ReleaseElements()

Implements: IUIProvider.ReleaseElements()

Does nothing because the hosted element's content is managed by its layout box.

C#
public void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The current layer context.

Implements: IUIProvider.UpdateUI(UILayerUpdateContext)