ClassDocumentPresenterBase
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class DocumentPresenterBase : ContentControl, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPresenterBase
Derived Classes:
Implements:
Inherited Members
Constructors
DocumentPresenterBase()
Declaration
public DocumentPresenterBase()
Fields
Properties
CaretPosition
Gets the current caret position.
Declaration
protected DocumentPosition CaretPosition { get; }
Property Value
HorizontalOffset
Gets the horizontal scroll position.
Declaration
public double HorizontalOffset { get; }
Property Value
Implements
HorizontalScrollOffset
Gets the horizontal scroll position.
Declaration
protected double HorizontalScrollOffset { get; set; }
Property Value
IsCtrlOrMacPressed
Gets a value indicating whether the Ctrl button of the keyboard is pressed.
IsFocused
Gets a value indicating whether this presenter is focused.
Declaration
public abstract bool IsFocused { get; }
Property Value
Implements
KeyboardSelectionHandler
Declaration
public KeyboardSelectionHandler KeyboardSelectionHandler { get; set; }
Property Value
MouseSelectionHandler
Gets or sets the current selection handler.
Declaration
public MouseSelectionHandler MouseSelectionHandler { get; set; }
Property Value
Owner
Gets or sets the owner RadRichTextBox.
Declaration
public RadRichTextBox Owner { get; set; }
Property Value
Implements
ScaleFactor
Gets the current scaling factor.
ScrollableHeight
Gets the height of the scroll bar view.
Declaration
public abstract double ScrollableHeight { get; }
Property Value
Implements
ScrollableWidth
Gets the width of the scroll bar view.
Declaration
public abstract double ScrollableWidth { get; }
Property Value
Implements
VerticalOffset
Gets the vertical scroll position.
Declaration
public double VerticalOffset { get; }
Property Value
Implements
VerticalScrollOffset
Gets the vertical scroll position.
Declaration
protected double VerticalScrollOffset { get; set; }
Property Value
ViewportHeight
Gets the height of the scroll bar viewport.
Declaration
public double ViewportHeight { get; }
Property Value
Implements
ViewportWidth
Gets the width of the scroll bar viewport.
Methods
DoOnDocumentChanged()
Called after the owner document is changed.
Declaration
public virtual void DoOnDocumentChanged()
Implements
DoOnDocumentChanging()
Called before the owner document is changed.
Declaration
public virtual void DoOnDocumentChanging()
Implements
FocusCaret()
Focuses the caret.
Declaration
public abstract void FocusCaret()
Implements
GetCurrentPage()
Gets the number of the current page.
Declaration
public abstract int GetCurrentPage()
Returns
An integer number representing the number of the current page.
GetCurrentSectionBoundsInViewOverride()
This method supports control infrastructure and is not intended for use directly from your code.
Declaration
protected abstract Rect GetCurrentSectionBoundsInViewOverride()
Returns
GetDocumentPointFromViewPoint(Point)
Gets a Point in the document from a point of the viewport.
GetDocumentPositionFromViewPoint(Point)
Gets a DocumentPosition from a Point in the viewport.
Declaration
public abstract DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters
viewPoint
Point containing X and Y coordinates in the viewport.
Returns
A DocumentPosition in the document.
Implements
GetDropPositionMarker()
Gets the drop marker for a drag and drop operation.
Declaration
protected abstract DropPositionMarker GetDropPositionMarker()
Returns
A drop position marker.
GetValidScaleFactor(double, double)
Gets a scale factor taking into account the min and max scale factor properties of RadRichTextBox.
GetViewPointFromDocumentPosition(DocumentPosition)
Gets a Point in the document from a DocumentPosition.
Declaration
public abstract Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters
position
A DocumentPosition in the document.
Returns
A Point in the document.
Implements
HandlePageDown()
Called when the caret is moved a page down.
Declaration
public abstract void HandlePageDown()
Implements
HandlePageUp()
Called when the caret is moved a page up.
Declaration
public abstract void HandlePageUp()
Implements
HideCaret()
Hides the caret.
Declaration
public abstract void HideCaret()
Implements
HideDropMarker()
Hides the drop marker for a drag and drop operation.
Declaration
public void HideDropMarker()
Implements
InvalidateAndUpdateLayout(bool)
Invalidates and updates the presenter layout.
Declaration
protected void InvalidateAndUpdateLayout(bool recursive = false)
Parameters
recursive
true if sub elements should be invalidated and updated recursively, otherwise false.
InvalidateLayout(bool)
Invalidates the presenter layout.
Declaration
protected void InvalidateLayout(bool recursive = false)
Parameters
recursive
true if sub elements should be invalidated recursively, otherwise false.
InvalidatePresenterArrange()
Inavlidates the arrange of the presenter.
Declaration
public void InvalidatePresenterArrange()
Implements
InvalidatePresenterArrangeOverride()
Called when an Invalidate arrange is made.
Declaration
protected virtual void InvalidatePresenterArrangeOverride()
InvalidatePresenterMeasure()
Invaldiates the measure of the presenter.
Declaration
public void InvalidatePresenterMeasure()
Implements
InvalidatePresenterMeasureOverride()
Called when an Invalidate measure is made.
Declaration
protected virtual void InvalidatePresenterMeasureOverride()
IsNavigationKey(Keys)
Gets a value indicating whether the provided key is used in navigation.
MoveDropMarker(DocumentPosition)
Moves the drop marker for a drag and drop operation at the provided DocumentPosition.
Declaration
public void MoveDropMarker(DocumentPosition documentPosition)
Parameters
documentPosition
The position of the drop marker.
Implements
OnOwnerChanged()
Called after the owner RadRichTextBox is changed.
Declaration
protected virtual void OnOwnerChanged()
OnOwnerChanging()
Called before the owner RadRichTextBox is cahnged.
Declaration
protected virtual void OnOwnerChanging()
RecreateUI()
Forces a recreation of all UI elements.
Declaration
public abstract void RecreateUI()
Implements
ScrollToHorizontalOffset(double)
Moves the horizontal scroll bar to the specified offset.
Declaration
public void ScrollToHorizontalOffset(double offset)
Parameters
offset
The new offset.
Implements
ScrollToNote(Note)
Scrolls the viewport so that the provided Note comes into view.
Declaration
public abstract void ScrollToNote(Note note)
Parameters
note
The note to scroll to.
Implements
ScrollToVerticalOffset(double)
Moves the vertical scroll bar to the specified offset.
Declaration
public void ScrollToVerticalOffset(double offset)
Parameters
offset
The new offset.
Implements
SetCaretBlinking(bool)
Sets a value indicating whether the caret is blinking or not.
Declaration
protected abstract void SetCaretBlinking(bool isBlinking)
Parameters
isBlinking
true if the caret will be blinking, otherwise false.
ShowCaret()
Shows the caret.
Declaration
public abstract void ShowCaret()
Implements
ShowDropMarker(DocumentPosition)
Shows the drop marker for a drag and drop operation at the provided DocumentPosition.
Declaration
public void ShowDropMarker(DocumentPosition position)
Parameters
position
The position of the drop marker.
Implements
UpdateCaretSize()
Updates the caret size.
Declaration
public abstract void UpdateCaretSize()
Implements
UpdateCurrentVisiblePage(int)
Makes the page at the provided page number visible in the viewport.
Declaration
protected void UpdateCurrentVisiblePage(int newValue)
Parameters
newValue
The number of the page to make visible.
UpdateCursorOnCtrlKey()
Updates the cursor after the Ctrl key is pressed or released on the keyboard.
Declaration
public void UpdateCursorOnCtrlKey()
UpdateProofingTextDecoration()
Forces an update of the proofing UI layer.
Declaration
public abstract void UpdateProofingTextDecoration()
Implements
UpdateScrollBar(double, double, RadScrollBarElement, ScrollBarVisibility)
Updates the provided scroll bar.
Declaration
protected static void UpdateScrollBar(double viewportSize, double max, RadScrollBarElement scrollBar, ScrollBarVisibility suggestedVisibility)
Parameters
viewportSize
The current viewport size.
max
The new scroll bar maximum value.
scrollBar
The scroll bar to update.
suggestedVisibility
The suggested visiblity for the scroll bar.
UpdateScrollOffsetFromDocumentPosition(DocumentPosition)
Scrolls the viewport so that the provided DocumentPosition is brought into view.
Declaration
public abstract void UpdateScrollOffsetFromDocumentPosition(DocumentPosition position)
Parameters
position
The position to scroll to.
Implements