UILayer
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:
public abstract class UILayer : INamedObject
Inheritance: objectUILayer
Derived Classes:
Implements:
Constructors
Properties
Gets the container manager.
public UILayerContainerManager ContainerManager { get; }
The container manager.
Gets the name of the layer.
public abstract string Name { get; }
The name of the layer.
Implements:
Gets the owner.
protected IUILayerOwner Owner { get; }
The owner.
Gets the UI update context cache.
protected UIUpdateContext UIUpdateContextCache { get; }
The UI update context cache.
Methods
Clears this instance.
public virtual void Clear()
Gets the added UI elements.
protected virtual IEnumerable<UIElement> GetAddedUIElements(ViewportPaneType viewportPaneType)
Type of the viewport pane.
Returns:IEnumerable<UIElement>
The added UI elements.
Gets the element visibility.
protected virtual ElementVisibility GetElementVisibility(UIElement element)
The element.
Returns:The visibility.
Called when owner is changed.
protected virtual void OnOwnerChanged(IUILayerOwner oldOwner, IUILayerOwner newOwner)
The old owner.
newOwnerIUILayerOwnerThe new owner.
Called when UI is updated.
protected virtual void OnUIUpdated()
Sets the element visibility.
protected virtual void SetElementVisibility(UIElement element, ElementVisibility visibility)
The element.
visibilityElementVisibilityThe visibility.
Translates the specified point.
protected Point Translate(Point point, ViewportPaneType viewportPaneType, UIUpdateContext updateContext)
The point.
viewportPaneTypeViewportPaneTypeType of the viewport pane.
updateContextUIUpdateContextThe update context.
Returns:The translated point.
Translates the specified rectangle.
protected Rect Translate(Rect rect, ViewportPaneType viewportPaneType, UIUpdateContext updateContext)
The rectangle.
viewportPaneTypeViewportPaneTypeType of the viewport pane.
updateContextUIUpdateContextThe update context.
Returns:The translated rectangle.
Translates and scales the UI elements of the layer.
protected abstract void TranslateAndScale(UIUpdateContext updateContext)
The update context.
Updates the UI.
public void UpdateUI()
Updates the UI.
public void UpdateUI(UIUpdateContext updateContext)
The update context.
Updates the UI.
protected virtual void UpdateUIOverride(UIUpdateContext updateContext)
The update context.