Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentPagePresenter : ContentControl, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IUILayerContainer
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPagePresenter...
Implements:
Inherited Members
Constructors
public DocumentPagePresenter()
Properties
Gets the input handler of the caret.
public CaretTextInputHandler CaretTextInputHandler { get; }
This property is used internally!
public override bool IsFocusable { get; set; }
Overrides:
Gets the owner of this presenter.
public IDocumentEditorPresenterContainer Owner { get; }
Implements:
Gets the canvas element of this page.
public Panel PageCanvas { get; }
Gets or sets the current page number.
public int SectionBoxIndex { get; set; }
Gets the UI layers of this page.
public UILayerStack UILayers { get; }
Implements:
Gets or sets the viewport rectangle of the presenter.
public RectangleF ViewportRectangle { get; set; }
Methods
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF finalSize)
The size that is available for element.
Returns:The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides:
In this method call to the Arrange method of each child must be made.
Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.
protected override void DisposeManagedResources()
Overrides:
Focuses the caret.
public void FocusCaret()
Returns the bounds of the area that should be invalidated when the element is invalidated.
public override Rectangle GetInvalidateBounds()
The bounds to invalidate.
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF availableSize)
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
Called when the element has been successfully loaded. That includes loading of all its children as well.
protected override void OnLoaded()
Overrides:
Changes the current keyboard selection handler with the provided one.
public void SetKeyboardSelectionHandler(KeyboardSelectionHandler keyboardSelectionHandler)
The new keyboard selection handler.
Changes the current mouse selection handler with the provided one.
public void SetMouseSelectionHandler(MouseSelectionHandler mouseSelectionHandler)
The new mouse selection handler.
Updates the caret size according to the current span style.
public void UpdateCaretSize()