ITextDocument Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to the content of a document, providing a way to load and save the document to a stream, retrieve text ranges, get the active selection, set default formatting attributes, and so on.
public interface class ITextDocument
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3203288539, 37042, 16524, 162, 246, 10, 10, 195, 30, 51, 228)]
struct ITextDocument
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3203288539, 37042, 16524, 162, 246, 10, 10, 195, 30, 51, 228)]
public interface ITextDocument
Public Interface ITextDocument
- Derived
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Caret |
Gets or sets the caret type. |
Default |
Gets or sets the default tab spacing. |
Selection |
Gets the active text selection. |
Undo |
Gets or sets the maximum number of actions that can be stored in the undo queue. |
Apply |
Decrements an internal counter that controls whether text updates are displayed immediately or batched. |
Batch |
Increments an internal counter that controls whether text updates are displayed immediately or batched. |
Begin |
Turns on undo grouping. |
Can |
Determines whether document content can be copied to the Clipboard. |
Can |
Determines whether the Clipboard has content that can be pasted into the document. |
Can |
Determines whether one or more redo operations exist. |
Can |
Determines whether one or more undo operations exist. |
End |
Turns off undo grouping. |
Get |
Retrieves the default character formatting attributes of the document. |
Get |
Retrieves the default paragraph formatting attributes of the document. |
Get |
Retrieves a new text range for the active story of the document. |
Get |
Retrieves the degenerate (empty) text range at, or nearest to, a particular point on the screen. |
Get |
Gets the text in the active story (document). |
Load |
Loads a document from a stream. |
Redo() |
Reverses the most recent undo operation. |
Save |
Saves the document to a stream. |
Set |
Sets the default character formatting attributes of the document. |
Set |
Sets the default paragraph formatting attributes of the document. |
Set |
Sets the text of the document. |
Undo() |
Undoes the most recent undo group. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |