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

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
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

C#
public DocumentPresenterBase()

Fields

C#
protected static readonly double DragMargin

Properties

Gets the current caret position.

C#
protected DocumentPosition CaretPosition { get; }

Gets the horizontal scroll position.

C#
public double HorizontalOffset { get; }

Implements: IDocumentEditorPresenter.HorizontalOffset

Gets the horizontal scroll position.

C#
protected double HorizontalScrollOffset { get; set; }

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

C#
public static bool IsCtrlOrMacPressed { get; }

Gets a value indicating whether this presenter is focused.

C#
public abstract bool IsFocused { get; }

Implements: IDocumentEditorPresenter.IsFocused

C#
public KeyboardSelectionHandler KeyboardSelectionHandler { get; set; }

Gets or sets the current selection handler.

C#
public MouseSelectionHandler MouseSelectionHandler { get; set; }

Gets or sets the owner RadRichTextBox.

C#
public RadRichTextBox Owner { get; set; }

Implements: IDocumentEditorPresenter.Owner

Gets the current scaling factor.

C#
public Size ScaleFactor { get; }

Gets the height of the scroll bar view.

C#
public abstract double ScrollableHeight { get; }

Implements: IDocumentEditorPresenter.ScrollableHeight

Gets the width of the scroll bar view.

C#
public abstract double ScrollableWidth { get; }

Implements: IDocumentEditorPresenter.ScrollableWidth

Gets the vertical scroll position.

C#
public double VerticalOffset { get; }

Implements: IDocumentEditorPresenter.VerticalOffset

Gets the vertical scroll position.

C#
protected double VerticalScrollOffset { get; set; }

Gets the height of the scroll bar viewport.

C#
public double ViewportHeight { get; }

Implements: IDocumentEditorPresenter.ViewportHeight

Gets the width of the scroll bar viewport.

C#
public double ViewportWidth { get; }

Implements: IDocumentEditorPresenter.ViewportWidth

Methods

Called after the owner document is changed.

C#
public virtual void DoOnDocumentChanged()

Implements: IDocumentEditorPresenter.DoOnDocumentChanged()

Called before the owner document is changed.

C#
public virtual void DoOnDocumentChanging()

Implements: IDocumentEditorPresenter.DoOnDocumentChanging()

Focuses the caret.

C#
public abstract void FocusCaret()

Implements: IDocumentEditorPresenter.FocusCaret()

Gets the number of the current page.

C#
public abstract int GetCurrentPage()
Returns:

int

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.

C#
protected abstract Rect GetCurrentSectionBoundsInViewOverride()
Returns:

Rect

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

C#
public abstract Point GetDocumentPointFromViewPoint(Point viewPoint)
Parameters:viewPointPoint

Point containing X and Y coordinates in the viewport.

Returns:

Point

A Point in the document.

Implements: IDocumentEditorPresenter.GetDocumentPointFromViewPoint(Point)

Gets a DocumentPosition from a Point in the viewport.

C#
public abstract DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters:viewPointPoint

Point containing X and Y coordinates in the viewport.

Returns:

DocumentPosition

A DocumentPosition in the document.

Implements: IDocumentEditorPresenter.GetDocumentPositionFromViewPoint(Point)

Gets the drop marker for a drag and drop operation.

C#
protected abstract DropPositionMarker GetDropPositionMarker()
Returns:

DropPositionMarker

A drop position marker.

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

C#
protected Size GetValidScaleFactor(double width, double height)
Parameters:widthdouble

The horizontal scale.

heightdouble

The vertical scale.

Returns:

Size

The clamped scale factor.

Gets a Point in the document from a DocumentPosition.

C#
public abstract Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters:positionDocumentPosition

A DocumentPosition in the document.

Returns:

Point

A Point in the document.

Implements: IDocumentEditorPresenter.GetViewPointFromDocumentPosition(DocumentPosition)

Called when the caret is moved a page down.

C#
public abstract void HandlePageDown()

Implements: IDocumentEditorPresenter.HandlePageDown()

Called when the caret is moved a page up.

C#
public abstract void HandlePageUp()

Implements: IDocumentEditorPresenter.HandlePageUp()

Hides the caret.

C#
public abstract void HideCaret()

Implements: IDocumentEditorPresenter.HideCaret()

Hides the drop marker for a drag and drop operation.

C#
public void HideDropMarker()

Implements: IDocumentEditorPresenter.HideDropMarker()

Invalidates and updates the presenter layout.

C#
protected void InvalidateAndUpdateLayout(bool recursive = false)
Parameters:recursivebool

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

Invalidates the presenter layout.

C#
protected void InvalidateLayout(bool recursive = false)
Parameters:recursivebool

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

Inavlidates the arrange of the presenter.

C#
public void InvalidatePresenterArrange()

Implements: IDocumentEditorPresenter.InvalidatePresenterArrange()

Called when an Invalidate arrange is made.

C#
protected virtual void InvalidatePresenterArrangeOverride()

Invaldiates the measure of the presenter.

C#
public void InvalidatePresenterMeasure()

Implements: IDocumentEditorPresenter.InvalidatePresenterMeasure()

Called when an Invalidate measure is made.

C#
protected virtual void InvalidatePresenterMeasureOverride()

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

C#
protected bool IsNavigationKey(Keys key)
Parameters:keyKeys

The keyboard key to test.

Returns:

bool

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

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

C#
public void MoveDropMarker(DocumentPosition documentPosition)
Parameters:documentPositionDocumentPosition

The position of the drop marker.

Implements: IDocumentEditorPresenter.MoveDropMarker(DocumentPosition)

Called after the owner RadRichTextBox is changed.

C#
protected virtual void OnOwnerChanged()

Called before the owner RadRichTextBox is cahnged.

C#
protected virtual void OnOwnerChanging()

Forces a recreation of all UI elements.

C#
public abstract void RecreateUI()

Implements: IDocumentEditorPresenter.RecreateUI()

Moves the horizontal scroll bar to the specified offset.

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

The new offset.

Implements: IDocumentEditorPresenter.ScrollToHorizontalOffset(double)

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

C#
public abstract void ScrollToNote(Note note)
Parameters:noteNote

The note to scroll to.

Implements: IDocumentEditorPresenter.ScrollToNote(Note)

Moves the vertical scroll bar to the specified offset.

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

The new offset.

Implements: IDocumentEditorPresenter.ScrollToVerticalOffset(double)

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

C#
protected abstract void SetCaretBlinking(bool isBlinking)
Parameters:isBlinkingbool

true if the caret will be blinking, otherwise false.

Shows the caret.

C#
public abstract void ShowCaret()

Implements: IDocumentEditorPresenter.ShowCaret()

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

C#
public void ShowDropMarker(DocumentPosition position)
Parameters:positionDocumentPosition

The position of the drop marker.

Implements: IDocumentEditorPresenter.ShowDropMarker(DocumentPosition)

Updates the caret size.

C#
public abstract void UpdateCaretSize()

Implements: IDocumentEditorPresenter.UpdateCaretSize()

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

C#
protected void UpdateCurrentVisiblePage(int newValue)
Parameters:newValueint

The number of the page to make visible.

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

C#
public void UpdateCursorOnCtrlKey()

Forces an update of the proofing UI layer.

C#
public abstract void UpdateProofingTextDecoration()

Implements: IDocumentEditorPresenter.UpdateProofingTextDecoration()

Updates the provided scroll bar.

C#
protected static void UpdateScrollBar(double viewportSize, double max, RadScrollBarElement scrollBar, ScrollBarVisibility suggestedVisibility)
Parameters:viewportSizedouble

The current viewport size.

maxdouble

The new scroll bar maximum value.

scrollBarRadScrollBarElement

The scroll bar to update.

suggestedVisibilityScrollBarVisibility

The suggested visiblity for the scroll bar.

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

C#
public abstract void UpdateScrollOffsetFromDocumentPosition(DocumentPosition position)
Parameters:positionDocumentPosition

The position to scroll to.

Implements: IDocumentEditorPresenter.UpdateScrollOffsetFromDocumentPosition(DocumentPosition)