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