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

Provides the base class from which the classes that represent worksheet editor presenter are derived.

Definition

Constructors

Initializes a new instance of the RadWorksheetEditorPresenterBase class.

C#
protected RadWorksheetEditorPresenterBase()

Properties

Gets the value indicating whether the panes are frozen.

C#
protected bool IsFrozen { get; }
Property Value:

The value indicating whether the panes are frozen.

Gets or sets the owner.

C#
public RadWorksheetEditor Owner { get; set; }
Property Value:

The owner.

Implements: IRadWorksheetEditorPresenter.Owner

Gets the pointer handlers controller.

C#
public PointerHandlersController PointerHandlersController { get; }
Property Value:

The pointer handlers controller.

Implements: IRadWorksheetEditorPresenter.PointerHandlersController

Gets the scrollable size of the presenter.

C#
public Size ScrollableSize { get; }
Property Value:

The scrollable size of the presenter.

Gets or sets the scroll bars provider.

C#
public IScrollBarsProvider ScrollBarsProvider { get; set; }
Property Value:

The scroll bars provider.

Implements: IRadWorksheetEditorPresenter.ScrollBarsProvider

Gets the value indicating if should show selection markers.

C#
public bool ShouldShowSelectionMarkers { get; set; }
Property Value:

The value indicating if should show selection markers.

Implements: IRadWorksheetEditorPresenter.ShouldShowSelectionMarkers

Methods

Brings the into view.

C#
public abstract void BringIntoView(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Implements: IRadWorksheetEditorPresenter.BringIntoView(CellIndex)

Called when sheet is changed.

C#
protected virtual void DoOnSheetChanged()

Called when the sheet is changing.

C#
protected virtual void DoOnSheetChanging()

Gets the cell index from view point.

C#
public abstract CellIndex GetCellIndexFromViewPoint(Point point)
Parameters:pointPoint

The view point.

Returns:

CellIndex

The cell index.

Implements: IRadWorksheetEditorPresenter.GetCellIndexFromViewPoint(Point)

Gets the document point from view point.

C#
public abstract Point GetDocumentPointFromViewPoint(Point point)
Parameters:pointPoint

The view point.

Returns:

Point

The document point.

Implements: IRadWorksheetEditorPresenter.GetDocumentPointFromViewPoint(Point)

Gets the nearest cell index from view point.

C#
public abstract CellIndex GetNearestCellIndexFromViewPoint(Point point)
Parameters:pointPoint

The view point.

Returns:

CellIndex

The nearest cell index.

Implements: IRadWorksheetEditorPresenter.GetNearestCellIndexFromViewPoint(Point)

Gets the view point from document point.

C#
public abstract Point GetViewPointFromDocumentPoint(Point point)
Parameters:pointPoint

The document point.

Returns:

Point

The view point.

Implements: IRadWorksheetEditorPresenter.GetViewPointFromDocumentPoint(Point)

Hides the drop marker.

C#
public abstract void HideDropMarker()

Implements: IRadWorksheetEditorPresenter.HideDropMarker()

Hides the selection markers.

C#
public void HideSelectionMarkers()

Implements: IRadWorksheetEditorPresenter.HideSelectionMarkers()

Initializes the UI layers.

C#
protected abstract void InitializeUILayers()

Invalidates the and update layout.

C#
protected void InvalidateAndUpdateLayout()

Moves the drop marker.

C#
public abstract void MoveDropMarker(CellIndex position)
Parameters:positionCellIndex

The position.

Implements: IRadWorksheetEditorPresenter.MoveDropMarker(CellIndex)

Raises the  routed event by using the event data provided.

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

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.

C#
protected override void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

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.

C#
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters:eMouseEventArgs

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.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

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.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

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.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

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.

C#
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

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.

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

The MouseWheelEventArgs that contains the event data.

Called when the owner is changed.

C#
protected virtual void OnOwnerChanged()

Called when the owner is changing.

C#
protected virtual void OnOwnerChanging()

Called when the SheetViewport is changed.

C#
protected override void OnSheetViewportChanged()

Overrides: WorksheetPresenterBase.OnSheetViewportChanged()

Raises the event.

C#
protected virtual void OnUIUpdated(WorksheetUIUpdatedEventArgs args)
Parameters:argsWorksheetUIUpdatedEventArgs

The WorksheetUIUpdatedEventArgs instance containing the event data.

Sets the horizontal offset.

C#
public void SetHorizontalOffset(double offset)
Parameters:offsetdouble

The offset.

Implements: IRadWorksheetEditorPresenter.SetHorizontalOffset(double)

Setups the UI layers.

C#
protected abstract void SetupUILayers()

Sets the vertical offset.

C#
public void SetVerticalOffset(double offset)
Parameters:offsetdouble

The offset.

Implements: IRadWorksheetEditorPresenter.SetVerticalOffset(double)

Shows the drop marker.

C#
public abstract void ShowDropMarker(CellIndex position)
Parameters:positionCellIndex

The position.

Implements: IRadWorksheetEditorPresenter.ShowDropMarker(CellIndex)

Shows the selection markers.

C#
public void ShowSelectionMarkers()

Implements: IRadWorksheetEditorPresenter.ShowSelectionMarkers()

Updates the horizontal scroll bar.

C#
protected void UpdateHorizontalScrollBar(SheetViewport sheetViewport, double smallChange)
Parameters:sheetViewportSheetViewport

The sheetViewport.

smallChangedouble

The small change.

Updates the scroll bars maximum.

C#
protected void UpdateScrollBarsMaximum(CellLayoutBox topLeftCellLayoutBox = null)
Parameters:topLeftCellLayoutBoxCellLayoutBox

Updates the scroll bars min and max value.

C#
protected void UpdateScrollBarsMinMax(CellLayoutBox topLeftCellLayoutBox = null)
Parameters:topLeftCellLayoutBoxCellLayoutBox

Updates the view port so the top left cell index is the desired one.

C#
public abstract void UpdateToViewWithTopLeftCellIndex(CellIndex topLeftCellIndex)
Parameters:topLeftCellIndexCellIndex

The desired index of the top left visible cell.

Implements: IRadWorksheetEditorPresenter.UpdateToViewWithTopLeftCellIndex(CellIndex)

Updates the vertical scroll bar.

C#
protected void UpdateVerticalScrollBar(SheetViewport sheetViewport, double smallChange)
Parameters:sheetViewportSheetViewport

The sheetViewport.

smallChangedouble

The small change.

Events

Occurs when the freeze panes has changed.

C#
public event EventHandler FreezePanesChanged

Occurs when the UI is updated.

C#
public event EventHandler<WorksheetUIUpdatedEventArgs> UIUpdated

Implements: IRadWorksheetEditorPresenter.UIUpdated