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

Creates and updates border visuals for visible tables and table cells.

Definition

Namespace:Telerik.WinForms.Documents.UI.Layers

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class BordersUILayer : IUILayer

Inheritance: objectBordersUILayer

Implements: IUILayer

Constructors

Initializes a transparent border layer with hit testing disabled.

C#
public BordersUILayer()

Fields

The canvas that hosts table-border visuals.

C#
public Canvas container

Properties

Gets the context supplied by the most recent viewport update.

C#
protected UILayerUpdateContext CurrentUpdateContext { get; }

Gets or sets whether table-border visuals participate in hit testing.

C#
public bool IsHitTestVisible { get; set; }

Implements: IUILayer.IsHitTestVisible

Gets the identifier used to register the table-borders layer.

C#
public virtual string Name { get; }

Implements: IUILayer.Name

Gets the visible table and table-cell layout boxes for the current viewport.

C#
public virtual IEnumerable<LayoutBox> ProvidersEnumerable { get; }

Gets whether the presenter clips this layer to the displayed section's bounds.

C#
public virtual bool ShouldClip { get; }

Implements: IUILayer.ShouldClip

Gets whether this layer updates for viewport changes when it is not invalidated; the layer returns false.

C#
public virtual bool ShouldUpdateWhenNotInvalidated { get; }

Implements: IUILayer.ShouldUpdateWhenNotInvalidated

Gets the registry used to reuse table-border providers.

C#
public UIProviderRegistry UIRegistry { get; }

Methods

Adds a border visual, first removing it from another BordersUILayer when necessary.

C#
public void AddChild(TableBorderUIElement uiElement)
Parameters:uiElementTableBorderUIElement

The border visual to add.

Updates each border visual's position from the current view offset.

C#
public void ArrangeChildren()

Implements: IUILayer.ArrangeChildren()

Releases all border visuals and providers, then clears the layer's tracking state.

C#
public void ClearChildren()

Implements: IUILayer.ClearChildren()

Gets the canvas that represents this layer in the presenter.

C#
public UIElement GetLayerUIElement()
Returns:

UIElement

The layer's hosting canvas.

Implements: IUILayer.GetLayerUIElement()

Removes a border visual from this layer's canvas without releasing its provider.

C#
public void RemoveChild(TableBorderUIElement existingElement)
Parameters:existingElementTableBorderUIElement

The border visual to remove.

Removes stale border visuals and creates or associates visuals for the currently visible table boxes.

C#
protected virtual void UpdateUI()

Stores the update context and provider registry, then synchronizes border visuals for a finite viewport.

C#
public void UpdateViewPort(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The current layer-update context.

Implements: IUILayer.UpdateViewPort(UILayerUpdateContext)