New to Telerik UI for WinFormsStart a free 30-day trial

Provides the base class from which the classes that represent worksheet UI layers are delivered.

Definition

Constructors

C#
protected WorksheetUILayerBase()

Properties

Gets the owner.

C#
protected RadWorksheetEditor Owner { get; }
Property Value:

The owner.

Gets the value indicating if the layer should be updated on selection changing.

C#
protected virtual bool UpdateOnSelectionChanged { get; }
Property Value:

The value indicating if the layer should be updated on selection changing.

Gets the worksheet.

C#
protected Worksheet Worksheet { get; }
Property Value:

The worksheet.

Methods

Attaches to editor dependent events.

C#
protected virtual void AttachToEditorDependentEvents(RadSheetEditorBase editor)
Parameters:editorRadSheetEditorBase

The editor.

Detaches from editor dependent events.

C#
protected virtual void DetachFromEditorDependentEvents(RadSheetEditorBase editor)
Parameters:editorRadSheetEditorBase

The editor.

Initializes the layer.

C#
public virtual void Initialize(IRadWorksheetEditorPresenter presenter)
Parameters:presenterIRadWorksheetEditorPresenter

The presenter.

Called when the owner is changed.

C#
protected override sealed void OnOwnerChanged(IUILayerOwner oldOwner, IUILayerOwner newOwner)
Parameters:oldOwnerIUILayerOwner

The old owner.

newOwnerIUILayerOwner

The new owner.

Overrides: UILayer.OnOwnerChanged(IUILayerOwner, IUILayerOwner)

Called when the owner is changed.

C#
protected virtual void OnOwnerChanged(RadWorksheetEditor oldEditor, RadWorksheetEditor newEditor)
Parameters:oldEditorRadWorksheetEditor

The old editor.

newEditorRadWorksheetEditor

The new editor.

Called when the selection is changed.

C#
protected virtual void OnSelectionChanged()

Scales the specified value.

C#
protected double Scale(double value, WorksheetUIUpdateContextBase updateContext)
Parameters:valuedouble

The value.

updateContextWorksheetUIUpdateContextBase

The update context.

Returns:

double

Scaled value.

Scales the specified point.

C#
protected Point Scale(Point point, WorksheetUIUpdateContextBase updateContext)
Parameters:pointPoint

The point.

updateContextWorksheetUIUpdateContextBase

The update context.

Returns:

Point

The scaled point.

Scales the specified size.

C#
protected Size Scale(Size size, WorksheetUIUpdateContextBase updateContext)
Parameters:sizeSize

The size to scale.

updateContextWorksheetUIUpdateContextBase

The update context.

Returns:

Size

The scaled size.

Translates and scales a point.

C#
protected Point TranslateAndScale(Point point, ViewportPaneType viewportPaneType, WorksheetUIUpdateContextBase updateContext)
Parameters:pointPoint

The point.

viewportPaneTypeViewportPaneType

Type of the viewport pane.

updateContextWorksheetUIUpdateContextBase

The update context.

Returns:

Point

The translated and scaled point.

Updates the UI.

C#
protected override sealed void UpdateUIOverride(UIUpdateContext updateContext)
Parameters:updateContextUIUpdateContext

The update context.

Overrides: UILayer.UpdateUIOverride(UIUpdateContext)

Updates the UI.

C#
public virtual void UpdateUIOverride(WorksheetUIUpdateContextBase updateContext)
Parameters:updateContextWorksheetUIUpdateContextBase

The update context.