Class
RadSheetEditorBase

Provides the base class from which the classes that represent RadSheetEditors are derived.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class RadSheetEditorBase : ControlBase, IRadSheetEditor, ICommandDescriptorsProvider, ISheetEditor, IUILayerOwner

Inheritance: objectControlBaseRadSheetEditorBase

Derived Classes: RadSheetEditorBase<T>

Implements: ICommandDescriptorsProviderIRadSheetEditorISheetEditorIUILayerOwner

Inherited Members ControlBase.GetTemplateChild<T>(string)ControlBase.GetRequiredTemplateChild<T>(string, bool)

Constructors

RadSheetEditorBase()

Initializes a new instance of the RadSheetEditorBase class.

Declaration

cs-api-definition
protected RadSheetEditorBase()

Fields

AllowScalingProperty

Allow scaling dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowScalingProperty

Field Value

DependencyProperty

ScaleFactorProperty

Scale factor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ScaleFactorProperty

Field Value

DependencyProperty

Properties

AllowScaling

Gets or sets a value indicating whether scaling is allowed.

Declaration

cs-api-definition
public bool AllowScaling { get; set; }

Property Value

bool

The value indicating whether scaling is allowed.

Implements IRadSheetEditor.AllowScaling

CommandDescriptors

Gets or sets the command descriptors.

Declaration

cs-api-definition
public CommandDescriptors CommandDescriptors { get; protected set; }

Property Value

CommandDescriptors

The command descriptors.

Implements ICommandDescriptorsProvider.CommandDescriptors

KeyBindings

Gets the key bindings.

Declaration

cs-api-definition
public KeyBindings KeyBindings { get; }

Property Value

KeyBindings

The key bindings.

Owner

Gets or sets the owner.

Declaration

cs-api-definition
public RadSpreadsheet Owner { get; set; }

Property Value

RadSpreadsheet

The owner.

Implements IRadSheetEditor.Owner

ScaleFactor

Gets or sets the scale factor.

Declaration

cs-api-definition
public Size ScaleFactor { get; set; }

Property Value

Size

The scale factor.

Implements IRadSheetEditor.ScaleFactor

ScrollBarsProvider

Gets or sets the scroll bars provider.

Declaration

cs-api-definition
public IScrollBarsProvider ScrollBarsProvider { get; set; }

Property Value

IScrollBarsProvider

The scroll bars provider.

Implements IRadSheetEditor.ScrollBarsProvider

SheetViewport

Gets the sheet viewport.

Declaration

cs-api-definition
public abstract SheetViewport SheetViewport { get; }

Property Value

SheetViewport

The sheet viewport.

Implements IRadSheetEditor.SheetViewport

Methods

DoOnSheetChanged()

Called when the sheet is changed.

Declaration

cs-api-definition
protected void DoOnSheetChanged()

DoOnSheetChanging()

Called when the sheet is changing.

Declaration

cs-api-definition
protected void DoOnSheetChanging()

GetSheetValue()

Gets the sheet value.

Declaration

cs-api-definition
protected Sheet GetSheetValue()

Returns

Sheet

The sheet.

IsSheetValid(Sheet)

Determines whether the sheet is valid.

Declaration

cs-api-definition
protected abstract bool IsSheetValid(Sheet sheet)

Parameters

sheet

Sheet

The sheet.

Returns

bool

True if is valid.

OnCommandDescriptorsChanged()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnCommandDescriptorsChanged()

OnKeyDown(KeyEventArgs)

Invoked when an unhandled  attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The KeyEventArgs that contains the event data.

OnOwnerChanged()

Called when the owner is changed.

Declaration

cs-api-definition
protected virtual void OnOwnerChanged()

OnOwnerChanging()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnOwnerChanging()

OnOwnerTemplateApplying()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnOwnerTemplateApplying()

OnPreviewSheetChanged()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPreviewSheetChanged()

OnPreviewSheetChanging()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPreviewSheetChanging()

OnScaleFactorChanged()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnScaleFactorChanged()

OnScrollBarProviderChanged()

Called when the scroll bar provider is changed.

Declaration

cs-api-definition
protected virtual void OnScrollBarProviderChanged()

OnScrollBarProviderChanging()

Called when the scroll bar provider is changing.

Declaration

cs-api-definition
protected virtual void OnScrollBarProviderChanging()

OnSheetChanged()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnSheetChanged()

OnSheetChanging()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnSheetChanging()

OnUICommandError(UICommandErrorEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnUICommandError(UICommandErrorEventArgs args)

Parameters

args

UICommandErrorEventArgs

The UICommandErrorEventArgs instance containing the event data.

OnUICommandExecuted(UICommandExecutedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnUICommandExecuted(UICommandExecutedEventArgs args)

Parameters

args

UICommandExecutedEventArgs

The UICommandExecutedEventArgs instance containing the event data.

OnUICommandExecuting(UICommandExecutingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnUICommandExecuting(UICommandExecutingEventArgs args)

Parameters

args

UICommandExecutingEventArgs

The UICommandExecutingEventArgs instance containing the event data.

PreserveSheetViewState(ISheetViewState)

Preserves the view state of the sheet.

Declaration

cs-api-definition
protected abstract void PreserveSheetViewState(ISheetViewState viewState)

Parameters

viewState

ISheetViewState

View state of the sheet.

RestoreSheetViewState(ISheetViewState)

Restores the view state of the sheet.

Declaration

cs-api-definition
protected abstract void RestoreSheetViewState(ISheetViewState viewState)

Parameters

viewState

ISheetViewState

View state of the sheet.

SetHorizontalOffset(double)

Sets the horizontal offset.

Declaration

cs-api-definition
public abstract void SetHorizontalOffset(double offset)

Parameters

offset

double

The offset.

Implements IRadSheetEditor.SetHorizontalOffset(double)

SetSheetValue(Sheet)

Sets the sheet value.

Declaration

cs-api-definition
protected void SetSheetValue(Sheet sheet)

Parameters

sheet

Sheet

The sheet.

SetVerticalOffset(double)

Sets the vertical offset.

Declaration

cs-api-definition
public abstract void SetVerticalOffset(double offset)

Parameters

offset

double

The offset.

Implements IRadSheetEditor.SetVerticalOffset(double)

Events

CommandDescriptorsChanged

Occurs when the command descriptors are changed.

Declaration

cs-api-definition
public event EventHandler CommandDescriptorsChanged

Event Value

EventHandler

Implements IRadSheetEditor.CommandDescriptorsChanged

PreviewSheetChanged

Occurs just before the sheet changing ends.

Declaration

cs-api-definition
public event EventHandler PreviewSheetChanged

Event Value

EventHandler

PreviewSheetChanging

Occurs just before the sheet changing begins.

Declaration

cs-api-definition
public event EventHandler PreviewSheetChanging

Event Value

EventHandler

ScaleFactorChanged

Occurs when the scale factor is changed.

Declaration

cs-api-definition
public event EventHandler ScaleFactorChanged

Event Value

EventHandler

Implements IRadSheetEditor.ScaleFactorChanged

SheetChanged

Occurs when the sheet is changed.

Declaration

cs-api-definition
public event EventHandler SheetChanged

Event Value

EventHandler

SheetChanging

Occurs when the sheet is changing.

Declaration

cs-api-definition
public event EventHandler SheetChanging

Event Value

EventHandler

UICommandError

Occurs on UI command error.

Declaration

cs-api-definition
public event EventHandler<UICommandErrorEventArgs> UICommandError

Event Value

EventHandler<UICommandErrorEventArgs>

Implements IRadSheetEditor.UICommandError

UICommandExecuted

Occurs when the UI command is executed.

Declaration

cs-api-definition
public event EventHandler<UICommandExecutedEventArgs> UICommandExecuted

Event Value

EventHandler<UICommandExecutedEventArgs>

Implements IRadSheetEditor.UICommandExecuted

UICommandExecuting

Occurs when the UI command is executing.

Declaration

cs-api-definition
public event EventHandler<UICommandExecutingEventArgs> UICommandExecuting

Event Value

EventHandler<UICommandExecutingEventArgs>

Implements IRadSheetEditor.UICommandExecuting