ClassBoxBasedUILayer<T>
Provides the base class from which the classes that represent box based UI layers are derived.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets.Layers
Assembly:Telerik.Windows.Controls.Spreadsheet.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
BoxBasedUILayer()
Initializes a new instance of the BoxBasedUILayer<T> class.
Declaration
protected 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.
box
T
The desired box.
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
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.
box
T
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.
updateContext
The update context.
Returns
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
box
T
The box of the UI element.
updateContext
The update context.
Returns
True if valid.
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.
box
T
The box of the UI element.
updateContext
The update context.
TranslateAndScale(UIUpdateContext)
Translates and scales the UI elements of the layer.
Declaration
protected override void TranslateAndScale(UIUpdateContext updateContext)
Parameters
updateContext
The update context.
Overrides
UpdateUIOverride(WorksheetUIUpdateContextBase)
Updates the UI.
Declaration
public override void UpdateUIOverride(WorksheetUIUpdateContextBase updateContext)
Parameters
updateContext
The update context.
Overrides