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

Represents the interface for a document editor presenter in the Telerik UI library.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public interface IDocumentEditorPresenter

Derived Classes: DocumentPresenterBaseDocumentPrintLayoutPresenterDocumentPrintPresenterDocumentWebLayoutPresenterShapeDocumentPresenter

Properties

HorizontalAlignment

HorizontalAlignment

Gets or sets the horizontal alignment of the document editor presenter.

C#
HorizontalAlignment HorizontalAlignment { get; set; }
Property Value:

A value of the HorizontalAlignment enumeration that specifies how the content is aligned horizontally within the document editor presenter.

Gets the horizontal offset of the document editor presenter.

C#
double HorizontalOffset { get; }
Property Value:

The horizontal offset as a double value, representing the distance in pixels from the left edge.

Gets a value indicating whether the document editor is currently focused.

C#
bool IsFocused { get; }

Gets the owner of the document editor presenter.

C#
RadRichTextBox Owner { get; set; }
Property Value:

The owner of type RadRichTextBox.

Gets the height that can be scrolled in the document editor.

C#
double ScrollableHeight { get; }

Gets the width available for scrolling within the document editor.

C#
double ScrollableWidth { get; }

Gets the vertical offset of the document editor presenter.

C#
double VerticalOffset { get; }
Property Value:

A double representing the vertical offset in pixels.

Gets the height of the viewport for the document editor presenter.

C#
double ViewportHeight { get; }

Gets the width of the viewport in the document editor presenter.

C#
double ViewportWidth { get; }

Methods

Invoked when the document has been changed. This method is typically used to handle any necessary updates or processing required in response to document modifications.

C#
void DoOnDocumentChanged()

Initiates the document changing process, allowing for any necessary actions to be performed before the document content changes.

C#
void DoOnDocumentChanging()

Moves the focus to the caret position within the document editor.

C#
void FocusCaret()

Gets the bounding rectangle of the current section in the view.

C#
Rect GetCurrentSectionBoundsInView()
Returns:

Rect

A Rect representing the dimensions and position of the current section in the view.

Converts a specified screen point to a document point within the document editor.

C#
Point GetDocumentPointFromViewPoint(Point viewPoint)
Parameters:viewPointPoint

The point in the screen coordinates that needs to be converted.

Returns:

Point

A Point representing the corresponding document point in the document editor.

Retrieves the document position based on the specified view point.

C#
DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters:viewPointPoint

The point in the view from which to get the document position.

Returns:

DocumentPosition

The corresponding document position as a DocumentPosition object that represents the location in the document.

Retrieves the view point corresponding to the specified document position in the document editor.

C#
Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters:positionDocumentPosition

The document position for which the view point is to be retrieved.

Returns:

Point

The view point associated with the given document position.

Handles the Page Down command, allowing the user to navigate down one page in the document.

C#
void HandlePageDown()

Handles the Page Up key event to navigate to the previous page within the document editor.

C#
void HandlePageUp()

Hides the caret in the document editor presenter.

C#
void HideCaret()

Hides the currently displayed drop marker in the document editor.

C#
void HideDropMarker()
Remarks:

This method is typically used during drag-and-drop operations to remove the visual indicator for where an item will be dropped, ensuring a clean user interface.

Invalidates the layout of the presenter, forcing it to re-arrange its contents.

C#
void InvalidatePresenterArrange()

Invalidates the measure of the document editor presenter, forcing a recalculation of its layout.

C#
void InvalidatePresenterMeasure()

Moves the drop marker to the specified document position.

C#
void MoveDropMarker(DocumentPosition position)
Parameters:positionDocumentPosition

The document position to which the drop marker should be moved.

Recreates the user interface for the document editor presenter.

C#
void RecreateUI()

Scrolls to the specified horizontal offset in the document editor.

C#
void ScrollToHorizontalOffset(double offset)
Parameters:offsetdouble

The horizontal offset to scroll to, in device-independent pixels.

Scrolls the document view to the specified note.

C#
void ScrollToNote(Note note)
Parameters:noteNote

The note to which the document view should scroll.

Scrolls the document view to the specified vertical offset.

C#
void ScrollToVerticalOffset(double offset)
Parameters:offsetdouble

The vertical offset in device-independent units (1/96 inch per unit) to which the document view should scroll.

Displays the caret at the current position within the document editor.

C#
void ShowCaret()

Displays a drop marker at the specified document position.

C#
void ShowDropMarker(DocumentPosition position)
Parameters:positionDocumentPosition

The document position where the drop marker should be shown.

Updates the properties of the caret in the document editor.

C#
void UpdateCaretProperties()

Updates the size of the caret within the document editor presenter.

C#
void UpdateCaretSize()

Updates the layout of the document editor presenter.

C#
void UpdateLayout()

Updates the proofing text decoration in the document editor.

C#
void UpdateProofingTextDecoration()

Updates the scroll offset of the document editor presenter based on the specified document position.

C#
void UpdateScrollOffsetFromDocumentPosition(DocumentPosition documentPosition)
Parameters:documentPositionDocumentPosition

The document position from which to calculate the new scroll offset.