RichEditTextDocument Class

Definition

Represents a rich text document that can be loaded, saved, and edited.

public ref class RichEditTextDocument sealed
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Version(65536)]
class RichEditTextDocument final
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Version(65536)]
public sealed class RichEditTextDocument
Public NotInheritable Class RichEditTextDocument
Inheritance
Object Platform::Object IInspectable RichEditTextDocument
Attributes

Properties

AlignmentIncludesTrailingWhitespace

Gets or sets a value that indicates whether trailing white space is taken into account when text is aligned.

CaretType

Gets or sets the caret type.

DefaultTabStop

Gets or sets the default tab spacing.

IgnoreTrailingCharacterSpacing

Gets or sets a value that indicates whether character spacing is applied to the last character in a line.

Selection

Gets the active text selection.

UndoLimit

Gets or sets the maximum number of actions that can be stored in the undo queue.

Methods

ApplyDisplayUpdates()

Decrements an internal counter that controls whether text updates are displayed immediately or batched.

BatchDisplayUpdates()

Increments an internal counter that controls whether text updates are displayed immediately or batched.

BeginUndoGroup()

Turns on undo grouping.

CanCopy()

Determines whether document content can be copied to the Clipboard.

CanPaste()

Determines whether the Clipboard has content that can be pasted into the document.

CanRedo()

Determines whether one or more redo operations exist.

CanUndo()

Determines whether one or more undo operations exist.

ClearUndoRedoHistory()

Empties the undo and redo buffers.

EndUndoGroup()

Turns off undo grouping.

GetDefaultCharacterFormat()

Retrieves the default character formatting attributes of the document.

GetDefaultParagraphFormat()

Retrieves the default paragraph formatting attributes of the document.

GetRange(Int32, Int32)

Retrieves a new text range for the active story of the document.

GetRangeFromPoint(Point, PointOptions)

Retrieves the degenerate (empty) text range at, or nearest to, a particular point on the screen.

GetText(TextGetOptions, String)

Gets the text in the active story (document).

LoadFromStream(TextSetOptions, IRandomAccessStream)

Loads a document from a stream.

Redo()

Reverses the most recent undo operation.

SaveToStream(TextGetOptions, IRandomAccessStream)

Saves the document to a stream.

SetDefaultCharacterFormat(ITextCharacterFormat)

Sets the default character formatting attributes of the document.

SetDefaultParagraphFormat(ITextParagraphFormat)

Sets the default paragraph formatting attributes of the document.

SetText(TextSetOptions, String)

Sets the text of the document.

Undo()

Undoes the most recent undo group.

Applies to