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