New to Telerik UI for WinFormsStart a free 30-day trial

UILayer

Class

Provides the base class from which the classes that represent UI layers are derived.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Layers

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public abstract class UILayer : INamedObject

Inheritance: objectUILayer

Derived Classes: PooledUILayer

Implements: INamedObject

Constructors

Initializes a new instance of the UILayer class.

C#
protected UILayer()

Properties

Gets the container manager.

C#
public UILayerContainerManager ContainerManager { get; }
Property Value:

The container manager.

Gets the name of the layer.

C#
public abstract string Name { get; }
Property Value:

The name of the layer.

Implements: INamedObject.Name

Gets the owner.

C#
protected IUILayerOwner Owner { get; }
Property Value:

The owner.

Gets the UI update context cache.

C#
protected UIUpdateContext UIUpdateContextCache { get; }
Property Value:

The UI update context cache.

Methods

Clears this instance.

C#
public virtual void Clear()

Gets the added UI elements.

C#
protected virtual IEnumerable<UIElement> GetAddedUIElements(ViewportPaneType viewportPaneType)
Parameters:viewportPaneTypeViewportPaneType

Type of the viewport pane.

Returns:

IEnumerable<UIElement>

The added UI elements.

Gets the element visibility.

C#
protected virtual ElementVisibility GetElementVisibility(UIElement element)
Parameters:elementUIElement

The element.

Returns:

ElementVisibility

The visibility.

Determines whether the specified element is visible.

C#
protected bool IsElementVisible(UIElement element)
Parameters:elementUIElement

The element.

Returns:

bool

True if is visible.

Called when owner is changed.

C#
protected virtual void OnOwnerChanged(IUILayerOwner oldOwner, IUILayerOwner newOwner)
Parameters:oldOwnerIUILayerOwner

The old owner.

newOwnerIUILayerOwner

The new owner.

Called when UI is updated.

C#
protected virtual void OnUIUpdated()

Sets the element visibility.

C#
protected virtual void SetElementVisibility(UIElement element, ElementVisibility visibility)
Parameters:elementUIElement

The element.

visibilityElementVisibility

The visibility.

Translates the specified point.

C#
protected Point Translate(Point point, ViewportPaneType viewportPaneType, UIUpdateContext updateContext)
Parameters:pointPoint

The point.

viewportPaneTypeViewportPaneType

Type of the viewport pane.

updateContextUIUpdateContext

The update context.

Returns:

Point

The translated point.

Translates the specified rectangle.

C#
protected Rect Translate(Rect rect, ViewportPaneType viewportPaneType, UIUpdateContext updateContext)
Parameters:rectRect

The rectangle.

viewportPaneTypeViewportPaneType

Type of the viewport pane.

updateContextUIUpdateContext

The update context.

Returns:

Rect

The translated rectangle.

Translates and scales the UI elements of the layer.

C#
protected abstract void TranslateAndScale(UIUpdateContext updateContext)
Parameters:updateContextUIUpdateContext

The update context.

Updates the UI.

C#
public void UpdateUI()

Updates the UI.

C#
public void UpdateUI(UIUpdateContext updateContext)
Parameters:updateContextUIUpdateContext

The update context.

Updates the UI.

C#
protected virtual void UpdateUIOverride(UIUpdateContext updateContext)
Parameters:updateContextUIUpdateContext

The update context.