Class DocumentPresenterBase
Inheritance
Namespace: Telerik.Windows.Documents.UI
Assembly: Telerik.Windows.Documents.dll
Syntax
public abstract class DocumentPresenterBase : ContentControl, IDocumentEditorPresenter
Constructors
DocumentPresenterBase()
Declaration
public DocumentPresenterBase()
Fields
DragMargin
Declaration
protected static readonly double DragMargin
Field Value
System.Double
|
Properties
CaretPosition
HorizontalOffset
Gets the horizontal scroll position.
Declaration
public double HorizontalOffset { get; }
Property Value
System.Double
|
Implements
HorizontalScrollOffset
Declaration
protected double HorizontalScrollOffset { get; set; }
Property Value
System.Double
|
IsFocusable
Declaration
[Obsolete("This property is only used in the Silverlight version of RadRichTextBox. For WPF use System.Windows.UIElement.Focusable. The property will be removed from the WPF code base with R1 2023.", false)]
public virtual bool IsFocusable { get; set; }
Property Value
System.Boolean
|
IsFocused
Declaration
public abstract bool IsFocused { get; }
Property Value
System.Boolean
|
Implements
KeyboardSelectionHandler
Gets or set the current selection handler.
Declaration
public KeyboardSelectionHandler KeyboardSelectionHandler { get; set; }
Property Value
KeyboardSelectionHandler
|
Owner
ScaleFactor
Declaration
public Size ScaleFactor { get; }
Property Value
System.Windows.Size
|
ScrollableHeight
Declaration
public abstract double ScrollableHeight { get; }
Property Value
System.Double
|
Implements
ScrollableWidth
Declaration
public abstract double ScrollableWidth { get; }
Property Value
System.Double
|
Implements
VerticalOffset
Gets the vertical scroll position.
Declaration
public double VerticalOffset { get; }
Property Value
System.Double
|
Implements
VerticalScrollOffset
Declaration
protected double VerticalScrollOffset { get; set; }
Property Value
System.Double
|
ViewportHeight
Declaration
public double ViewportHeight { get; }
Property Value
System.Double
|
Implements
ViewportWidth
Declaration
public double ViewportWidth { get; }
Property Value
System.Double
|
Implements
Methods
DoOnDocumentChanged()
Declaration
public virtual void DoOnDocumentChanged()
Implements
DoOnDocumentChanging()
Declaration
public virtual void DoOnDocumentChanging()
Implements
FocusCaret()
GetCurrentPage()
Declaration
public abstract int GetCurrentPage()
Returns
System.Int32
|
GetCurrentSectionBoundsInViewOverride()
Declaration
protected abstract Rect GetCurrentSectionBoundsInViewOverride()
Returns
System.Windows.Rect
|
GetDocumentPointFromViewPoint(Point)
Declaration
public abstract Point GetDocumentPointFromViewPoint(Point viewPoint)
Parameters
System.Windows.Point
viewPoint
|
Returns
System.Windows.Point
|
Implements
GetDocumentPositionFromViewPoint(Point)
Declaration
public abstract DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters
System.Windows.Point
viewPoint
|
Returns
DocumentPosition
|
Implements
GetDropPositionMarker()
Declaration
protected abstract DropPositionMarker GetDropPositionMarker()
Returns
DropPositionMarker
|
GetValidScaleFactor(Double, Double)
Declaration
protected Size GetValidScaleFactor(double width, double height)
Parameters
System.Double
width
|
System.Double
height
|
Returns
System.Windows.Size
|
GetViewPointFromDocumentPosition(DocumentPosition)
Declaration
public abstract Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters
DocumentPosition
position
|
Returns
System.Windows.Point
|
Implements
HandlePageDown()
Declaration
public abstract void HandlePageDown()
Implements
HandlePageUp()
HideCaret()
HideDropMarker()
InvalidateAndUpdateLayout()
Declaration
protected void InvalidateAndUpdateLayout()
InvalidateLayout()
Declaration
protected void InvalidateLayout()
InvalidatePresenterArrange()
Declaration
public void InvalidatePresenterArrange()
Implements
InvalidatePresenterArrangeOverride()
Declaration
protected virtual void InvalidatePresenterArrangeOverride()
InvalidatePresenterMeasure()
Declaration
public void InvalidatePresenterMeasure()
Implements
InvalidatePresenterMeasureOverride()
Declaration
protected virtual void InvalidatePresenterMeasureOverride()
IsNavigationKey(Key)
MoveDropMarker(DocumentPosition)
Declaration
public void MoveDropMarker(DocumentPosition documentPosition)
Parameters
DocumentPosition
documentPosition
|
Implements
OnGotFocus(RoutedEventArgs)
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
|
OnKeyUp(KeyEventArgs)
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Input.KeyEventArgs
e
|
OnLostFocus(RoutedEventArgs)
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
|
OnOwnerChanged()
Declaration
protected virtual void OnOwnerChanged()
OnOwnerChanging()
Declaration
protected virtual void OnOwnerChanging()
OnPreviewKeyDown(KeyEventArgs)
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
System.Windows.Input.KeyEventArgs
e
|
RecreateUI()
ScrollToHorizontalOffset(Double)
Declaration
public void ScrollToHorizontalOffset(double offset)
Parameters
System.Double
offset
|
Implements
ScrollToNote(Note)
ScrollToVerticalOffset(Double)
Declaration
public void ScrollToVerticalOffset(double offset)
Parameters
System.Double
offset
|
Implements
SetCaretBlinking(Boolean)
Declaration
protected abstract void SetCaretBlinking(bool isBlinking)
Parameters
System.Boolean
isBlinking
|
ShowCaret()
ShowDropMarker(DocumentPosition)
Declaration
public void ShowDropMarker(DocumentPosition position)
Parameters
DocumentPosition
position
|
Implements
UpdateCaretSize()
Declaration
public abstract void UpdateCaretSize()
Implements
UpdateCurrentVisiblePage(Int32)
Declaration
protected void UpdateCurrentVisiblePage(int newValue)
Parameters
System.Int32
newValue
|
UpdateProofingTextDecoration()
Declaration
public abstract void UpdateProofingTextDecoration()
Implements
UpdateScrollBar(Double, Double, ScrollBar, ScrollBarVisibility)
Declaration
protected static void UpdateScrollBar(double viewportSize, double max, ScrollBar scrollBar, ScrollBarVisibility suggestedVisibility)
Parameters
System.Double
viewportSize
|
System.Double
max
|
System.Windows.Controls.Primitives.ScrollBar
scrollBar
|
System.Windows.Controls.ScrollBarVisibility
suggestedVisibility
|
UpdateScrollOffsetFromDocumentPosition(DocumentPosition)
Declaration
public abstract void UpdateScrollOffsetFromDocumentPosition(DocumentPosition position)
Parameters
DocumentPosition
position
|
Implements
Explicit Interface Implementations
IDocumentEditorPresenter.get_HorizontalAlignment()
Declaration
HorizontalAlignment IDocumentEditorPresenter.get_HorizontalAlignment()
Returns
System.Windows.HorizontalAlignment
|
Implements
IDocumentEditorPresenter.GetCurrentSectionBoundsInView()
This method supports control infrastructure and is not intended for use directly from your code.
Declaration
Rect IDocumentEditorPresenter.GetCurrentSectionBoundsInView()
Returns
System.Windows.Rect
|
Implements
IDocumentEditorPresenter.set_HorizontalAlignment(HorizontalAlignment)
Declaration
void IDocumentEditorPresenter.set_HorizontalAlignment(HorizontalAlignment value)
Parameters
System.Windows.HorizontalAlignment
value
|
Implements
IDocumentEditorPresenter.UpdateLayout()
Declaration
void IDocumentEditorPresenter.UpdateLayout()