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

Defines an interface for a container that presents document editors within a UI context.

Definition

Namespace:Telerik.Windows.Documents.UI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public interface IDocumentEditorPresenterContainer

Derived Classes: RadRichTextBox

Properties

Gets a value indicating whether the document editor presenter can accept a return key input.

C#
bool AcceptsReturn { get; set; }

Gets a value indicating whether the document editor presenter container accepts the Tab key for navigation.

C#
bool AcceptsTab { get; set; }

Gets or sets a value indicating whether scaling is allowed in the document editor presenter container.

C#
bool AllowScaling { get; set; }
Property Value:

true if scaling is allowed; otherwise, false.

Gets or sets a value indicating whether hyperlinks should be automatically inserted.

C#
bool AutoInsertHyperlinks { get; set; }
Property Value:

true if hyperlinks should be automatically inserted; otherwise, false.

Gets or sets the color of the caret in the document editor.

C#
Color CaretColor { get; set; }
Property Value:

A Color representing the caret's color. The default value is typically black.

Gets the caret factory used to create caret instances for the document editor presenter container.

C#
ICaretFactory CaretFactory { get; }

Retrieves the appearance settings for the specified comment.

C#
int CaretWidthScaleFactor { get; set; }

Gets the minimum width of the comment pane in the document editor presenter container.

C#
double CommentPaneMinWidth { get; set; }

Gets or sets the margin for the content of the comment template.

C#
Thickness CommentTemplateContentMargin { get; set; }
Property Value:

A Thickness value that represents the margin for the comment template content.

Gets the current editing context of the document editor presenter container.

C#
EditingContext CurrentEditingContext { get; }

Gets or sets the current editing style for the document editor presenter.

C#
StyleDefinition CurrentEditingStyle { get; }
Property Value:

The current editing style applied to the document editor presenter.

Gets the document associated with the document editor presenter container.

C#
RadDocument Document { get; }
Property Value:

The document that is currently being edited within the container.

Gets the Document Editor associated with the presenter container.

C#
IDocumentEditor DocumentEditor { get; }

Gets the email pattern used for validating email addresses within the document editor.

C#
string EmailPattern { get; set; }

Gets or sets the brush used to visually represent the enforced permission range in the document editor.

C#
Brush EnforcedPermissionRangeBrush { get; set; }
Property Value:

A Brush object that represents the color and style of the enforced permission range.

Gets or sets the field shading mode for the document editor presenter container.

C#
FieldShadingType FieldShadingMode { get; set; }
Property Value:

A value representing the field shading mode, which determines how fields are visually represented in the document editor.

Represents the context for the header and footer user interface in the document editor.

C#
HeaderFooterUIContext HeaderFooterUIContext { get; }

Gets the hyperlink pattern associated with the document editor presenter container.

C#
string HyperlinkPattern { get; set; }

Gets the list of words that are ignored during editing.

C#
IIgnoredWordDictionary IgnoredWords { get; set; }

Gets or sets the settings for the image selection adorner.

C#
ImageSelectionAdornerSettings ImageSelectionAdornerSettings { get; }
Property Value:

The settings that define the appearance and behavior of the image selection adorner.

Gets or sets a value indicating whether the document editor presenter container is focusable.

C#
bool IsFocusable { get; set; }
Property Value:

true if the container is focusable; otherwise, false.

Gets a value indicating whether the document editor is currently in header or footer edit mode.

C#
bool IsInHeaderFooterEditMode { get; set; }

Gets a value indicating whether the document editor presenter is in read-only mode.

C#
bool IsReadOnly { get; set; }

Gets or sets a value indicating whether spell checking is enabled for the document editor presenter.

C#
bool IsSpellCheckingEnabled { get; set; }
Property Value:

true if spell checking is enabled; otherwise, false.

Gets or sets the scale factor applied to the document editor presenter container.

C#
Size ScaleFactor { get; set; }
Property Value:

A Size structure representing the horizontal and vertical scale factors.

Gets or sets the currently selected comment in the document editor presenter container.

C#
Comment SelectedComment { get; set; }

Gets the currently selected note in the document editor presenter container.

C#
Note SelectedNote { get; set; }

Gets or sets the selection fill of the document editor presenter container.

C#
Brush SelectionFill { get; set; }

Represents the stroke used for the selection in the document editor presenter container.

C#
Brush SelectionStroke { get; set; }

Gets a value indicating whether selection markers should be shown in the document editor.

C#
bool ShouldShowSelectionMarkers { get; }

Displays the comments associated with the document in the presenter container.

C#
bool ShowComments { get; set; }

Displays formatting symbols within the document editor, allowing users to see the underlying structure of the document's formatting.

C#
bool ShowFormattingSymbols { get; set; }

Gets the spell checker associated with the document editor presenter container.

C#
ISpellChecker SpellChecker { get; set; }

Gets the UI layers builder responsible for constructing UI layers in the document editor presenter container.

C#
UILayersBuilder UILayersBuilder { get; }

Gets or sets a value indicating whether the previous version of Microsoft IME should be used.

C#
bool UsePreviousVersionOfMicrosoftIme { get; set; }
Property Value:

true to use the previous version of Microsoft IME; otherwise, false.

Methods

Invoked when a note reference is clicked within the document editor.

C#
void CallOnNoteReferenceClicked(MouseButtonEventArgs args)
Parameters:argsMouseButtonEventArgs

The mouse button event arguments containing details about the click event.

C#
CommentAppearanceSettings GetApperanceSettingsForComment(Comment comment)
Parameters:commentCommentReturns:

CommentAppearanceSettings

Retrieves the registry of UI providers associated with the document editor presenter container.

C#
UIProviderRegistry GetUIProviderRegistry()
Returns:

UIProviderRegistry

An instance of the UIProviderRegistry that contains the available UI providers.

Hides the selection markers in the document editor presenter container.

C#
void HideSelectionMarkers()

Invalidates the arrangement of the editor, prompting a re-evaluation of its layout.

C#
void InvalidateEditorArrange()
Remarks:

This method is typically used when changes have occurred that may affect the layout of the editor and require a refresh to ensure that all elements are displayed correctly.

Invalidates the measurement of the editor, causing it to recalculate its layout and size.

C#
void InvalidateEditorMeasure()

Scrolls the document view to the specified note, bringing it into view.

C#
void ScrollToNote(Note note)
Parameters:noteNote

The note to which the document view should scroll.

Sets the active document editor for the presenter container.

C#
void SetActiveDocumentEditor(IDocumentEditor documentEditor, DocumentEditorType documentEditorType)
Parameters:documentEditorIDocumentEditor

The document editor to be set as active.

documentEditorTypeDocumentEditorType

The type of the document editor being set.

Displays the selection markers in the document editor presenter container.

C#
void ShowSelectionMarkers()

Tracks the current editing styles in the document editor presenter container.

C#
void TrackCurrentEditingStyles()

Updates the current editing style of the document editor presenter.

C#
void UpdateCurrentEditingStyle()

Updates the currently visible page in the document editor presenter container.

C#
void UpdateCurrentVisiblePage(int newValue)
Parameters:newValueint

The index of the page to be made visible.

Updates the layout of the document editor within the presenter container.

C#
void UpdateEditorLayout()

Events

C#
event EventHandler ProtectionStateChanged
C#
event EventHandler ScaleFactorChanged