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