ClassDocumentWebLayoutPresenter
Used by RadRichTextEditor for presenting documents in "Web" LayoutMode (with no paging). See also DocumentPrintLayoutPresenter
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentWebLayoutPresenter : DocumentPresenterBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable, IUILayerContainer
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPresenterBaseDocumentWebLayoutPresenter
Implements:
Inherited Members
Constructors
DocumentWebLayoutPresenter()
Declaration
public DocumentWebLayoutPresenter()
Properties
Caret
Gets the caret of the presenter.
CaretTextInputHandler
Gets the input handler associated with 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
IsFocused
Gets a value indicating whether this presenter is focused.
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
UILayers
Declaration
public UILayerStack UILayers { get; }
Property Value
Implements
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
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
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
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
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.
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
Overrides
OnOwnerChanged()
Called after the owner RadRichTextBox is changed.
Declaration
protected override void OnOwnerChanged()
Overrides
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 position)
Parameters
position
The position to scroll to.
Overrides