Class BoxBasedUILayer<T>
Provides the base class from which the classes that represent box based UI layers are derived.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Worksheets.Layers
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public abstract class BoxBasedUILayer<T> : WorksheetUILayerBase, INamedObject where T : LayoutBox
Type Parameters
T
The type of the T. |
Constructors
BoxBasedUILayer()
Methods
Clear()
Clears this instance by removing all UI elements and returning them in the pool.
Declaration
public override void Clear()
Overrides
CreateUIElementForBox(ViewportPaneType, T, WorksheetUIUpdateContextBase)
Creates the UI element for box.
Declaration
protected abstract UIElement CreateUIElementForBox(ViewportPaneType viewportPaneType, T box, WorksheetUIUpdateContextBase updateContext)
Parameters
ViewportPaneType
viewportPaneType
Type of the viewport pane. |
T
box
The desired box. |
WorksheetUIUpdateContextBase
updateContext
The update context. |
Returns
UIElement
The created UI element. |
GetAddedUIElements(ViewportPaneType)
Gets the added UI elements.
Declaration
protected override IEnumerable<UIElement> GetAddedUIElements(ViewportPaneType viewportPaneType)
Parameters
ViewportPaneType
viewportPaneType
Type of the viewport pane. |
Returns
System.Collections.Generic.IEnumerable<UIElement>
The added UI elements. |
Overrides
GetAssociatedBoxForUIElement(ViewportPaneType, UIElement)
Gets the associated box for UI element.
Declaration
protected T GetAssociatedBoxForUIElement(ViewportPaneType viewportPaneType, UIElement uiElement)
Parameters
ViewportPaneType
viewportPaneType
Type of the viewport pane. |
UIElement
uiElement
The UI element. |
Returns
T
The associated box. |
GetAssociatedUIElementForBox(ViewportPaneType, T)
Gets the associated UI element for box.
Declaration
protected UIElement GetAssociatedUIElementForBox(ViewportPaneType viewportPaneType, T box)
Parameters
ViewportPaneType
viewportPaneType
Type of the viewport pane. |
T
box
The desired box. |
Returns
UIElement
The UI element. |
GetVisibleBoxes(ViewportPaneType, WorksheetUIUpdateContextBase)
Gets the visible boxes.
Declaration
protected abstract IEnumerable<T> GetVisibleBoxes(ViewportPaneType viewportPaneType, WorksheetUIUpdateContextBase updateContext)
Parameters
ViewportPaneType
viewportPaneType
Type of the viewport pane. |
WorksheetUIUpdateContextBase
updateContext
The update context. |
Returns
System.Collections.Generic.IEnumerable<T>
The visible boxes. |
IsUIElementValidOverride(T, WorksheetUIUpdateContextBase)
Determines whether the specified UI element box is valid.
Declaration
protected abstract bool IsUIElementValidOverride(T box, WorksheetUIUpdateContextBase updateContext)
Parameters
T
box
The box of the UI element. |
WorksheetUIUpdateContextBase
updateContext
The update context. |
Returns
System.Boolean
|
SetUIElementPropertiesForBox(UIElement, T, WorksheetUIUpdateContextBase)
Sets the UI element properties for box.
Declaration
protected abstract void SetUIElementPropertiesForBox(UIElement uiElement, T box, WorksheetUIUpdateContextBase updateContext)
Parameters
UIElement
uiElement
The UI element. |
T
box
The box of the UI element. |
WorksheetUIUpdateContextBase
updateContext
The update context. |
TranslateAndScale(UIUpdateContext)
Translates and scales the UI elements of the layer.
Declaration
protected override void TranslateAndScale(UIUpdateContext updateContext)
Parameters
UIUpdateContext
updateContext
The update context. |
Overrides
UpdateUIOverride(WorksheetUIUpdateContextBase)
Updates the UI.
Declaration
public override void UpdateUIOverride(WorksheetUIUpdateContextBase updateContext)
Parameters
WorksheetUIUpdateContextBase
updateContext
The update context. |