ClassDocumentPagePresenter
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
DocumentPagePresenter()
Declaration
public DocumentPagePresenter()
Properties
Caret
Gets the caret of the presenter.
CaretTextInputHandler
Gets the input handler of the caret.
Declaration
public CaretTextInputHandler CaretTextInputHandler { get; }
Property Value
IsFocusable
This property is used internally!
Declaration
public override bool IsFocusable { get; set; }
Property Value
Overrides
Owner
Gets the owner of this presenter.
Declaration
public IDocumentEditorPresenterContainer Owner { get; }
Property Value
Implements
PageCanvas
Gets the canvas element of this page.
SectionBoxIndex
Gets or sets the current page number.
UILayers
Gets the UI layers of this page.
Declaration
public UILayerStack UILayers { get; }
Property Value
Implements
ViewportRectangle
Gets or sets the viewport rectangle of the presenter.
Declaration
public RectangleF ViewportRectangle { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
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
Remarks
In this method call to the Arrange method of each child must be made.
DisposeManagedResources()
Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.
Declaration
protected override void DisposeManagedResources()
Overrides
GetInvalidateBounds()
Returns the bounds of the area that should be invalidated when the element is invalidated.
Declaration
public override Rectangle GetInvalidateBounds()
Returns
The bounds to invalidate.
Overrides
HitTest(Point)
Gets a value indicating whether the provided point is inside the bounding rectangle of the presenter.
IsLayerSupported(IUILayer)
Gets a value indicating whether the provided layer is supported in this presenter.
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
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
Remarks
In this method call to the Measure method of each child must be made.
OnLoaded()
Called when the element has been successfully loaded. That includes loading of all its children as well.
Declaration
protected override void OnLoaded()
Overrides
SetKeyboardSelectionHandler(KeyboardSelectionHandler)
Changes the current keyboard selection handler with the provided one.
Declaration
public void SetKeyboardSelectionHandler(KeyboardSelectionHandler keyboardSelectionHandler)
Parameters
keyboardSelectionHandler
The new keyboard selection handler.
SetMouseSelectionHandler(MouseSelectionHandler)
Changes the current mouse selection handler with the provided one.
Declaration
public void SetMouseSelectionHandler(MouseSelectionHandler mouseSelectionHandler)
Parameters
mouseSelectionHandler
The new mouse selection handler.
UpdateCaretSize()
Updates the caret size according to the current span style.
Declaration
public void UpdateCaretSize()