ClassWorksheetUILayerBase
Provides the base class from which the classes that represent worksheet UI layers are delivered.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets.Layers
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public abstract class WorksheetUILayerBase : PooledUILayer, INamedObject
Inheritance: objectUILayerPooledUILayerWorksheetUILayerBase
Derived Classes:
Implements:
Inherited Members
Constructors
WorksheetUILayerBase()
Declaration
protected WorksheetUILayerBase()
Properties
Owner
Gets the owner.
Declaration
protected RadWorksheetEditor Owner { get; }
Property Value
The owner.
UpdateOnSelectionChanged
Gets the value indicating if the layer should be updated on selection changing.
Declaration
protected virtual bool UpdateOnSelectionChanged { get; }
Property Value
The value indicating if the layer should be updated on selection changing.
Worksheet
Gets the worksheet.
Declaration
protected Worksheet Worksheet { get; }
Property Value
Worksheet
The worksheet.
Methods
AttachToEditorDependentEvents(RadSheetEditorBase)
Attaches to editor dependent events.
Declaration
protected virtual void AttachToEditorDependentEvents(RadSheetEditorBase editor)
Parameters
editor
The editor.
DetachFromEditorDependentEvents(RadSheetEditorBase)
Detaches from editor dependent events.
Declaration
protected virtual void DetachFromEditorDependentEvents(RadSheetEditorBase editor)
Parameters
editor
The editor.
Initialize(IRadWorksheetEditorPresenter)
Initializes the layer.
Declaration
public virtual void Initialize(IRadWorksheetEditorPresenter presenter)
Parameters
presenter
The presenter.
OnOwnerChanged(IUILayerOwner, IUILayerOwner)
Called when the owner is changed.
Declaration
protected override sealed void OnOwnerChanged(IUILayerOwner oldOwner, IUILayerOwner newOwner)
Parameters
oldOwner
The old owner.
newOwner
The new owner.
Overrides
OnOwnerChanged(RadWorksheetEditor, RadWorksheetEditor)
Called when the owner is changed.
Declaration
protected virtual void OnOwnerChanged(RadWorksheetEditor oldEditor, RadWorksheetEditor newEditor)
Parameters
oldEditor
The old editor.
newEditor
The new editor.
OnSelectionChanged()
Called when the selection is changed.
Declaration
protected virtual void OnSelectionChanged()
Scale(Point, WorksheetUIUpdateContextBase)
Scales the specified point.
Declaration
protected Point Scale(Point point, WorksheetUIUpdateContextBase updateContext)
Parameters
point
Point
The point.
updateContext
The update context.
Returns
Point
The scaled point.
Scale(Size, WorksheetUIUpdateContextBase)
Scales the specified size.
Declaration
protected Size Scale(Size size, WorksheetUIUpdateContextBase updateContext)
Parameters
size
Size
The size to scale.
updateContext
The update context.
Returns
Size
The scaled size.
Scale(double, WorksheetUIUpdateContextBase)
Scales the specified value.
Declaration
protected double Scale(double value, WorksheetUIUpdateContextBase updateContext)
Parameters
value
The value.
updateContext
The update context.
Returns
Scaled value.
TranslateAndScale(Point, ViewportPaneType, WorksheetUIUpdateContextBase)
Translates and scales a point.
Declaration
protected Point TranslateAndScale(Point point, ViewportPaneType viewportPaneType, WorksheetUIUpdateContextBase updateContext)
Parameters
point
Point
The point.
viewportPaneType
ViewportPaneType
Type of the viewport pane.
updateContext
The update context.
Returns
Point
The translated and scaled point.
UpdateUIOverride(UIUpdateContext)
Updates the UI.
Declaration
protected override sealed void UpdateUIOverride(UIUpdateContext updateContext)
Parameters
updateContext
The update context.
Overrides
UpdateUIOverride(WorksheetUIUpdateContextBase)
Updates the UI.
Declaration
public virtual void UpdateUIOverride(WorksheetUIUpdateContextBase updateContext)
Parameters
updateContext
The update context.