ClassDocumentPrintLayoutPresenter
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentPrintLayoutPresenter : DocumentPresenterBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPresenterBaseDocumentPrintLayoutPresenter
Implements:
Inherited Members
Constructors
DocumentPrintLayoutPresenter()
Declaration
public DocumentPrintLayoutPresenter()
Properties
IsFocusable
Gets a value indicating whether this presenter is focused.
Declaration
public override bool IsFocusable { get; set; }
Property Value
Overrides
IsFocused
Gets or sets a value indicating whether this presenter can receive focus.
PagePresentersMargin
Gets or sets value corresponding to the margins between child page-presenters.
ScrollableHeight
Gets the height of the scroll bar view.
Declaration
public override double ScrollableHeight { get; }
Property Value
Overrides
ScrollableWidth
Gets the width of the scroll bar view.
Declaration
public override double ScrollableWidth { get; }
Property Value
Overrides
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.
DoOnDocumentChanged()
Called after the owner document is changed.
Declaration
public override void DoOnDocumentChanged()
Overrides
DoOnDocumentChanging()
Called before the owner document is changed.
Declaration
public override void DoOnDocumentChanging()
Overrides
FocusCaret()
Focuses the caret.
Declaration
public override void FocusCaret()
Overrides
GetCurrentPage()
Gets the number of the current page.
Declaration
public override int GetCurrentPage()
Returns
An integer number representing the number of the current page.
Overrides
GetCurrentSectionBoundsInViewOverride()
This method supports control infrastructure and is not intended for use directly from your code.
Declaration
protected override Rect GetCurrentSectionBoundsInViewOverride()
Returns
Overrides
GetDocumentPointFromViewPoint(Point)
Gets a Point in the document from a point of the viewport.
GetDocumentPositionFromViewPoint(Point)
Gets a DocumentPosition from a Point in the viewport.
Declaration
public override DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters
viewPoint
Point containing X and Y coordinates in the viewport.
Returns
A DocumentPosition in the document.
Overrides
GetDropPositionMarker()
Gets the drop marker for a drag and drop operation.
Declaration
protected override DropPositionMarker GetDropPositionMarker()
Returns
A drop position marker.
Overrides
GetFocusedPresenter()
Gets the currently focused page presenter.
Declaration
public DocumentPagePresenter GetFocusedPresenter()
Returns
A page presenter for the currently focused page.
GetViewPointFromDocumentPosition(DocumentPosition)
Gets a Point in the document from a DocumentPosition.
Declaration
public override Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters
position
A DocumentPosition in the document.
Returns
A Point in the document.
Overrides
HandlePageDown()
Called when the caret is moved a page down.
Declaration
public override void HandlePageDown()
Overrides
HandlePageUp()
Called when the caret is moved a page up.
Declaration
public override void HandlePageUp()
Overrides
InvalidatePresenterArrangeOverride()
Called when an Invalidate arrange is made.
Declaration
protected override void InvalidatePresenterArrangeOverride()
Overrides
InvalidatePresenterMeasureOverride()
Called when an Invalidate measure is made.
Declaration
protected override void InvalidatePresenterMeasureOverride()
Overrides
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.
OnOwnerChanging()
Called before the owner RadRichTextBox is cahnged.
Declaration
protected override void OnOwnerChanging()
Overrides
RecreateUI()
Forces a recreation of all UI elements.
Declaration
public override void RecreateUI()
Overrides
ScrollToNote(Note)
Scrolls the viewport so that the provided Note comes into view.
Declaration
public override void ScrollToNote(Note note)
Parameters
note
The note to scroll to.
Overrides
SetCaretBlinking(bool)
Sets a value indicating whether the caret is blinking or not.
Declaration
protected override void SetCaretBlinking(bool isBlinking)
Parameters
isBlinking
true if the caret will be blinking, otherwise false.
Overrides
UpdateCaretSize()
Updates the caret size.
Declaration
public override void UpdateCaretSize()
Overrides
UpdateProofingTextDecoration()
Forces an update of the proofing UI layer.
Declaration
public override void UpdateProofingTextDecoration()
Overrides
UpdateScrollOffsetFromDocumentPosition(DocumentPosition)
Scrolls the viewport so that the provided DocumentPosition is brought into view.
Declaration
public override void UpdateScrollOffsetFromDocumentPosition(DocumentPosition documentPosition)
Parameters
documentPosition
The position to scroll to.
Overrides