ClassRadWorksheetEditorPresenterBase
Provides the base class from which the classes that represent worksheet editor presenter are derived.
Definition
Namespace:Telerik.WinForms.Controls.Spreadsheet.Worksheets
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public abstract class RadWorksheetEditorPresenterBase : WorksheetPresenterBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IRadWorksheetEditorPresenter, IWorksheetPresenterBase
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIElementControlBaseWorksheetPresenterBaseRadWorksheetEditorPresenterBase
Derived Classes:
Implements:
Inherited Members
Constructors
RadWorksheetEditorPresenterBase()
Initializes a new instance of the RadWorksheetEditorPresenterBase class.
Declaration
protected RadWorksheetEditorPresenterBase()
Properties
IsFrozen
Gets the value indicating whether the panes are frozen.
Declaration
protected bool IsFrozen { get; }
Property Value
The value indicating whether the panes are frozen.
Owner
Gets or sets the owner.
Declaration
public RadWorksheetEditor Owner { get; set; }
Property Value
The owner.
Implements
PointerHandlersController
Gets the pointer handlers controller.
Declaration
public PointerHandlersController PointerHandlersController { get; }
Property Value
The pointer handlers controller.
Implements
ScrollBarsProvider
Gets or sets the scroll bars provider.
Declaration
public IScrollBarsProvider ScrollBarsProvider { get; set; }
Property Value
The scroll bars provider.
Implements
ScrollableSize
Gets the scrollable size of the presenter.
Declaration
public Size ScrollableSize { get; }
Property Value
The scrollable size of the presenter.
ShouldShowSelectionMarkers
Gets the value indicating if should show selection markers.
Declaration
public bool ShouldShowSelectionMarkers { get; set; }
Property Value
The value indicating if should show selection markers.
Implements
Methods
BringIntoView(CellIndex)
Brings the into view.
Declaration
public abstract void BringIntoView(CellIndex cellIndex)
Parameters
cellIndex
Index of the cell.
Implements
DoOnSheetChanged()
Called when sheet is changed.
Declaration
protected virtual void DoOnSheetChanged()
DoOnSheetChanging()
Called when the sheet is changing.
Declaration
protected virtual void DoOnSheetChanging()
GetCellIndexFromViewPoint(Point)
Gets the cell index from view point.
GetDocumentPointFromViewPoint(Point)
Gets the document point from view point.
GetNearestCellIndexFromViewPoint(Point)
Gets the nearest cell index from view point.
GetViewPointFromDocumentPoint(Point)
Gets the view point from document point.
HideDropMarker()
Hides the drop marker.
Declaration
public abstract void HideDropMarker()
Implements
HideSelectionMarkers()
Hides the selection markers.
Declaration
public void HideSelectionMarkers()
Implements
InitializeUILayers()
Initializes the UI layers.
Declaration
protected abstract void InitializeUILayers()
InvalidateAndUpdateLayout()
Invalidates the and update layout.
Declaration
protected void InvalidateAndUpdateLayout()
MoveDropMarker(CellIndex)
Moves the drop marker.
Declaration
public abstract void MoveDropMarker(CellIndex position)
Parameters
position
The position.
Implements
OnGotFocus(EventArgs)
Raises the GotFocus routed event by using the event data provided.
OnKeyUp(KeyEventArgs)
Invoked when an unhandled KeyUp 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
protected override void OnKeyUp(KeyEventArgs e)
Parameters
e
The KeyEventArgs that contains the event data.
Overrides
OnLostMouseCapture(MouseEventArgs)
Invoked when an unhandled LostMouseCapture 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
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters
e
The MouseEventArgs that contains event data.
Overrides
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
e
The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.
Overrides
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.
Overrides
OnMouseMove(MouseEventArgs)
Invoked when an unhandled MouseMove 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
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs that contains the event data.
Overrides
OnMouseRightButtonDown(MouseButtonEventArgs)
Called when mouse right button down event occurs.
Declaration
protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
Parameters
e
The MouseButtonEventArgs instance containing the event data.
Overrides
OnMouseRightButtonUp(MouseButtonEventArgs)
Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters
e
The MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was released.
Overrides
OnMouseWheel(MouseEventArgs)
Invoked when an unhandled MouseWheel 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
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
e
The MouseEventArgs that contains the event data.
Overrides
OnOwnerChanged()
Called when the owner is changed.
Declaration
protected virtual void OnOwnerChanged()
OnOwnerChanging()
Called when the owner is changing.
Declaration
protected virtual void OnOwnerChanging()
OnSheetViewportChanged()
Called when the SheetViewport is changed.
Declaration
protected override void OnSheetViewportChanged()
Overrides
OnUIUpdated(WorksheetUIUpdatedEventArgs)
Raises the event.
Declaration
protected virtual void OnUIUpdated(WorksheetUIUpdatedEventArgs args)
Parameters
args
The WorksheetUIUpdatedEventArgs instance containing the event data.
SetHorizontalOffset(double)
Sets the horizontal offset.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
offset
The offset.
Implements
SetVerticalOffset(double)
Sets the vertical offset.
Declaration
public void SetVerticalOffset(double offset)
Parameters
offset
The offset.
Implements
SetupUILayers()
Setups the UI layers.
Declaration
protected abstract void SetupUILayers()
ShowDropMarker(CellIndex)
Shows the drop marker.
Declaration
public abstract void ShowDropMarker(CellIndex position)
Parameters
position
The position.
Implements
ShowSelectionMarkers()
Shows the selection markers.
Declaration
public void ShowSelectionMarkers()
Implements
UpdateHorizontalScrollBar(SheetViewport, double)
Updates the horizontal scroll bar.
Declaration
protected void UpdateHorizontalScrollBar(SheetViewport sheetViewport, double smallChange)
Parameters
sheetViewport
The sheetViewport.
smallChange
The small change.
UpdateScrollBarsMaximum(CellLayoutBox)
Updates the scroll bars maximum.
Declaration
protected void UpdateScrollBarsMaximum(CellLayoutBox topLeftCellLayoutBox = null)
Parameters
topLeftCellLayoutBox
UpdateScrollBarsMinMax(CellLayoutBox)
Updates the scroll bars min and max value.
Declaration
protected void UpdateScrollBarsMinMax(CellLayoutBox topLeftCellLayoutBox = null)
Parameters
topLeftCellLayoutBox
UpdateToViewWithTopLeftCellIndex(CellIndex)
Updates the view port so the top left cell index is the desired one.
Declaration
public abstract void UpdateToViewWithTopLeftCellIndex(CellIndex topLeftCellIndex)
Parameters
topLeftCellIndex
The desired index of the top left visible cell.
Implements
UpdateVerticalScrollBar(SheetViewport, double)
Updates the vertical scroll bar.
Declaration
protected void UpdateVerticalScrollBar(SheetViewport sheetViewport, double smallChange)
Parameters
sheetViewport
The sheetViewport.
smallChange
The small change.
Events
FreezePanesChanged
Occurs when the freeze panes has changed.
UIUpdated
Occurs when the UI is updated.
Declaration
public event EventHandler<WorksheetUIUpdatedEventArgs> UIUpdated
Event Value
Implements