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