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