Class
DocumentPresenterBase

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
public abstract class DocumentPresenterBase : ContentControl, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPresenterBase

Derived Classes: DocumentPrintLayoutPresenterDocumentWebLayoutPresenter

Implements: ICustomTypeDescriptorIDisposableIDocumentEditorPresenterINotifyPropertyChangedIStylableNodeISupportDropISupportSystemSkin

Inherited Members ContentControl.DpiScaleChanged(SizeF)ContentControl.ContentFrameworkElement.RenderTransformPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.CursorPropertyFrameworkElement.ForegroundPropertyFrameworkElement.HeightPropertyFrameworkElement.WidthPropertyFrameworkElement.InitializeFields()FrameworkElement.OnApplyTemplate()FrameworkElement.MeasureOverride(SizeF)FrameworkElement.GetClientRectangle(SizeF)FrameworkElement.PaintElement(IGraphics, float, SizeF)FrameworkElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)FrameworkElement.DragDrop(Point, ISupportDrag)FrameworkElement.DragOver(Point, ISupportDrag)FrameworkElement.DragEnter(Point, ISupportDrag)FrameworkElement.DragLeave(Point, ISupportDrag)FrameworkElement.FlowDirectionFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.ActualHeightFrameworkElement.ActualWidthFrameworkElement.CursorFrameworkElement.RenderTransformOriginFrameworkElement.MouseOverBorderThicknessFrameworkElement.BorderBrushFrameworkElement.BackgroundFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.HorizontalContentAlignmentFrameworkElement.VerticalContentAlignmentFrameworkElement.AllowDropUIElement.TextPropertyUIElement.FlowDirectionPropertyUIElement.ClipPropertyUIElement.UpdateRenderTransform()UIElement.CaptureMouse()UIElement.ReleaseMouseCapture()UIElement.Paint(IPaintingContext)UIElement.CanPaint(IPaintingContext)UIElement.PaintCore(IPaintingContext)UIElement.ClearValue(RadProperty)UIElement.IsKeyboardFocusWithin()UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)UIElement.OnMouseClick(MouseButtonEventArgs)UIElement.OnMouseDoubleClick(MouseButtonEventArgs)UIElement.HitTest(Point)UIElement.GetClipRect()UIElement.DoClick(EventArgs)UIElement.DoDoubleClick(EventArgs)UIElement.OnMouseDown(MouseEventArgs)UIElement.DoMouseWheel(MouseEventArgs)UIElement.DoMouseMove(MouseEventArgs)UIElement.OnMouseUp(MouseEventArgs)UIElement.OnBubbleEvent(RadElement, RoutedEventArgs)UIElement.OnClick(EventArgs)UIElement.OnDoubleClick(EventArgs)UIElement.OnPropertyChanged(RadPropertyChangedEventArgs)UIElement.OnLostFocus(EventArgs)UIElement.OnGotFocus(EventArgs)UIElement.OnBoundsChanged(RadPropertyChangedEventArgs)UIElement.IsFocusableUIElement.TextUIElement.AutomationIDUIElement.RenderTransformUIElement.ClipUIElement.IsHitTestVisibleUIElement.DispatcherUIElement.HasReceivedFocusUIElement.MouseLeftButtonDownUIElement.MouseLeftButtonUpUIElement.MouseRightButtonDownUIElement.MouseRightButtonUpUIElement.MouseClickUIElement.MouseDoubleClickUIElement.MouseEnterUIElement.GotFocusUIElement.LostFocusVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.OnPropertyChanging(RadPropertyChangingEventArgs)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.CreateChildElements()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnLoaded()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.ShouldArrangeChild(RadElement)RadElement.ArrangeOverride(SizeF)RadElement.ShouldMeasureChild(RadElement)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElementSkin(IGraphics)RadElement.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintBackgroundShape(IGraphics)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.GetStylablePropertiesFilter()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseMove(MouseEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.OnMouseLeave(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadElement.ToString()RadElement.DisposeManagedResources()RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetBorderThickness(BorderPrimitive)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.CanHaveOwnStyleRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.ShouldHandleMouseInputRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.ToolTipTextRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

DocumentPresenterBase()

Declaration

cs-api-definition
public DocumentPresenterBase()

Fields

DragMargin

Declaration

cs-api-definition
protected static readonly double DragMargin

Field Value

double

Properties

CaretPosition

Gets the current caret position.

Declaration

cs-api-definition
protected DocumentPosition CaretPosition { get; }

Property Value

DocumentPosition

HorizontalOffset

Gets the horizontal scroll position.

Declaration

cs-api-definition
public double HorizontalOffset { get; }

Property Value

double

Implements IDocumentEditorPresenter.HorizontalOffset

HorizontalScrollOffset

Gets the horizontal scroll position.

Declaration

cs-api-definition
protected double HorizontalScrollOffset { get; set; }

Property Value

double

IsCtrlOrMacPressed

Gets a value indicating whether the Ctrl button of the keyboard is pressed.

Declaration

cs-api-definition
public static bool IsCtrlOrMacPressed { get; }

Property Value

bool

IsFocused

Gets a value indicating whether this presenter is focused.

Declaration

cs-api-definition
public abstract bool IsFocused { get; }

Property Value

bool

Implements IDocumentEditorPresenter.IsFocused

KeyboardSelectionHandler

Declaration

cs-api-definition
public KeyboardSelectionHandler KeyboardSelectionHandler { get; set; }

Property Value

KeyboardSelectionHandler

MouseSelectionHandler

Gets or sets the current selection handler.

Declaration

cs-api-definition
public MouseSelectionHandler MouseSelectionHandler { get; set; }

Property Value

MouseSelectionHandler

Owner

Gets or sets the owner RadRichTextBox.

Declaration

cs-api-definition
public RadRichTextBox Owner { get; set; }

Property Value

RadRichTextBox

Implements IDocumentEditorPresenter.Owner

ScaleFactor

Gets the current scaling factor.

Declaration

cs-api-definition
public Size ScaleFactor { get; }

Property Value

Size

ScrollableHeight

Gets the height of the scroll bar view.

Declaration

cs-api-definition
public abstract double ScrollableHeight { get; }

Property Value

double

Implements IDocumentEditorPresenter.ScrollableHeight

ScrollableWidth

Gets the width of the scroll bar view.

Declaration

cs-api-definition
public abstract double ScrollableWidth { get; }

Property Value

double

Implements IDocumentEditorPresenter.ScrollableWidth

VerticalOffset

Gets the vertical scroll position.

Declaration

cs-api-definition
public double VerticalOffset { get; }

Property Value

double

Implements IDocumentEditorPresenter.VerticalOffset

VerticalScrollOffset

Gets the vertical scroll position.

Declaration

cs-api-definition
protected double VerticalScrollOffset { get; set; }

Property Value

double

ViewportHeight

Gets the height of the scroll bar viewport.

Declaration

cs-api-definition
public double ViewportHeight { get; }

Property Value

double

Implements IDocumentEditorPresenter.ViewportHeight

ViewportWidth

Gets the width of the scroll bar viewport.

Declaration

cs-api-definition
public double ViewportWidth { get; }

Property Value

double

Implements IDocumentEditorPresenter.ViewportWidth

Methods

DoOnDocumentChanged()

Called after the owner document is changed.

Declaration

cs-api-definition
public virtual void DoOnDocumentChanged()

Implements IDocumentEditorPresenter.DoOnDocumentChanged()

DoOnDocumentChanging()

Called before the owner document is changed.

Declaration

cs-api-definition
public virtual void DoOnDocumentChanging()

Implements IDocumentEditorPresenter.DoOnDocumentChanging()

FocusCaret()

Focuses the caret.

Declaration

cs-api-definition
public abstract void FocusCaret()

Implements IDocumentEditorPresenter.FocusCaret()

GetCurrentPage()

Gets the number of the current page.

Declaration

cs-api-definition
public abstract int GetCurrentPage()

Returns

int

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

cs-api-definition
protected abstract Rect GetCurrentSectionBoundsInViewOverride()

Returns

Rect

GetDocumentPointFromViewPoint(Point)

Gets a Point in the document from a point of the viewport.

Declaration

cs-api-definition
public abstract Point GetDocumentPointFromViewPoint(Point viewPoint)

Parameters

viewPoint

Point

Point containing X and Y coordinates in the viewport.

Returns

Point

A Point in the document.

Implements IDocumentEditorPresenter.GetDocumentPointFromViewPoint(Point)

GetDocumentPositionFromViewPoint(Point)

Gets a DocumentPosition from a Point in the viewport.

Declaration

cs-api-definition
public abstract DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)

Parameters

viewPoint

Point

Point containing X and Y coordinates in the viewport.

Returns

DocumentPosition

A DocumentPosition in the document.

Implements IDocumentEditorPresenter.GetDocumentPositionFromViewPoint(Point)

GetDropPositionMarker()

Gets the drop marker for a drag and drop operation.

Declaration

cs-api-definition
protected abstract DropPositionMarker GetDropPositionMarker()

Returns

DropPositionMarker

A drop position marker.

GetValidScaleFactor(double, double)

Gets a scale factor taking into account the min and max scale factor properties of RadRichTextBox.

Declaration

cs-api-definition
protected Size GetValidScaleFactor(double width, double height)

Parameters

width

double

The horizontal scale.

height

double

The vertical scale.

Returns

Size

The clamped scale factor.

GetViewPointFromDocumentPosition(DocumentPosition)

Gets a Point in the document from a DocumentPosition.

Declaration

cs-api-definition
public abstract Point GetViewPointFromDocumentPosition(DocumentPosition position)

Parameters

position

DocumentPosition

A DocumentPosition in the document.

Returns

Point

A Point in the document.

Implements IDocumentEditorPresenter.GetViewPointFromDocumentPosition(DocumentPosition)

HandlePageDown()

Called when the caret is moved a page down.

Declaration

cs-api-definition
public abstract void HandlePageDown()

Implements IDocumentEditorPresenter.HandlePageDown()

HandlePageUp()

Called when the caret is moved a page up.

Declaration

cs-api-definition
public abstract void HandlePageUp()

Implements IDocumentEditorPresenter.HandlePageUp()

HideCaret()

Hides the caret.

Declaration

cs-api-definition
public abstract void HideCaret()

Implements IDocumentEditorPresenter.HideCaret()

HideDropMarker()

Hides the drop marker for a drag and drop operation.

Declaration

cs-api-definition
public void HideDropMarker()

Implements IDocumentEditorPresenter.HideDropMarker()

InvalidateAndUpdateLayout(bool)

Invalidates and updates the presenter layout.

Declaration

cs-api-definition
protected void InvalidateAndUpdateLayout(bool recursive = false)

Parameters

recursive

bool

true if sub elements should be invalidated and updated recursively, otherwise false.

InvalidateLayout(bool)

Invalidates the presenter layout.

Declaration

cs-api-definition
protected void InvalidateLayout(bool recursive = false)

Parameters

recursive

bool

true if sub elements should be invalidated recursively, otherwise false.

InvalidatePresenterArrange()

Inavlidates the arrange of the presenter.

Declaration

cs-api-definition
public void InvalidatePresenterArrange()

Implements IDocumentEditorPresenter.InvalidatePresenterArrange()

InvalidatePresenterArrangeOverride()

Called when an Invalidate arrange is made.

Declaration

cs-api-definition
protected virtual void InvalidatePresenterArrangeOverride()

InvalidatePresenterMeasure()

Invaldiates the measure of the presenter.

Declaration

cs-api-definition
public void InvalidatePresenterMeasure()

Implements IDocumentEditorPresenter.InvalidatePresenterMeasure()

InvalidatePresenterMeasureOverride()

Called when an Invalidate measure is made.

Declaration

cs-api-definition
protected virtual void InvalidatePresenterMeasureOverride()

IsNavigationKey(Keys)

Gets a value indicating whether the provided key is used in navigation.

Declaration

cs-api-definition
protected bool IsNavigationKey(Keys key)

Parameters

key

Keys

The keyboard key to test.

Returns

bool

true if the key is used in navigation, otherwise false.

MoveDropMarker(DocumentPosition)

Moves the drop marker for a drag and drop operation at the provided DocumentPosition.

Declaration

cs-api-definition
public void MoveDropMarker(DocumentPosition documentPosition)

Parameters

documentPosition

DocumentPosition

The position of the drop marker.

Implements IDocumentEditorPresenter.MoveDropMarker(DocumentPosition)

OnOwnerChanged()

Called after the owner RadRichTextBox is changed.

Declaration

cs-api-definition
protected virtual void OnOwnerChanged()

OnOwnerChanging()

Called before the owner RadRichTextBox is cahnged.

Declaration

cs-api-definition
protected virtual void OnOwnerChanging()

RecreateUI()

Forces a recreation of all UI elements.

Declaration

cs-api-definition
public abstract void RecreateUI()

Implements IDocumentEditorPresenter.RecreateUI()

ScrollToHorizontalOffset(double)

Moves the horizontal scroll bar to the specified offset.

Declaration

cs-api-definition
public void ScrollToHorizontalOffset(double offset)

Parameters

offset

double

The new offset.

Implements IDocumentEditorPresenter.ScrollToHorizontalOffset(double)

ScrollToNote(Note)

Scrolls the viewport so that the provided Note comes into view.

Declaration

cs-api-definition
public abstract void ScrollToNote(Note note)

Parameters

note

Note

The note to scroll to.

Implements IDocumentEditorPresenter.ScrollToNote(Note)

ScrollToVerticalOffset(double)

Moves the vertical scroll bar to the specified offset.

Declaration

cs-api-definition
public void ScrollToVerticalOffset(double offset)

Parameters

offset

double

The new offset.

Implements IDocumentEditorPresenter.ScrollToVerticalOffset(double)

SetCaretBlinking(bool)

Sets a value indicating whether the caret is blinking or not.

Declaration

cs-api-definition
protected abstract void SetCaretBlinking(bool isBlinking)

Parameters

isBlinking

bool

true if the caret will be blinking, otherwise false.

ShowCaret()

Shows the caret.

Declaration

cs-api-definition
public abstract void ShowCaret()

Implements IDocumentEditorPresenter.ShowCaret()

ShowDropMarker(DocumentPosition)

Shows the drop marker for a drag and drop operation at the provided DocumentPosition.

Declaration

cs-api-definition
public void ShowDropMarker(DocumentPosition position)

Parameters

position

DocumentPosition

The position of the drop marker.

Implements IDocumentEditorPresenter.ShowDropMarker(DocumentPosition)

UpdateCaretSize()

Updates the caret size.

Declaration

cs-api-definition
public abstract void UpdateCaretSize()

Implements IDocumentEditorPresenter.UpdateCaretSize()

UpdateCurrentVisiblePage(int)

Makes the page at the provided page number visible in the viewport.

Declaration

cs-api-definition
protected void UpdateCurrentVisiblePage(int newValue)

Parameters

newValue

int

The number of the page to make visible.

UpdateCursorOnCtrlKey()

Updates the cursor after the Ctrl key is pressed or released on the keyboard.

Declaration

cs-api-definition
public void UpdateCursorOnCtrlKey()

UpdateProofingTextDecoration()

Forces an update of the proofing UI layer.

Declaration

cs-api-definition
public abstract void UpdateProofingTextDecoration()

Implements IDocumentEditorPresenter.UpdateProofingTextDecoration()

UpdateScrollBar(double, double, RadScrollBarElement, ScrollBarVisibility)

Updates the provided scroll bar.

Declaration

cs-api-definition
protected static void UpdateScrollBar(double viewportSize, double max, RadScrollBarElement scrollBar, ScrollBarVisibility suggestedVisibility)

Parameters

viewportSize

double

The current viewport size.

max

double

The new scroll bar maximum value.

scrollBar

RadScrollBarElement

The scroll bar to update.

suggestedVisibility

ScrollBarVisibility

The suggested visiblity for the scroll bar.

UpdateScrollOffsetFromDocumentPosition(DocumentPosition)

Scrolls the viewport so that the provided DocumentPosition is brought into view.

Declaration

cs-api-definition
public abstract void UpdateScrollOffsetFromDocumentPosition(DocumentPosition position)

Parameters

position

DocumentPosition

The position to scroll to.

Implements IDocumentEditorPresenter.UpdateScrollOffsetFromDocumentPosition(DocumentPosition)