Share via


RichEditTextDocument 类

定义

表示可以加载、保存和编辑的 RTF 文档。

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
继承
Object Platform::Object IInspectable RichEditTextDocument
属性

属性

AlignmentIncludesTrailingWhitespace

获取或设置一个值,该值指示在对齐文本时是否考虑尾随空格。

CaretType

获取或设置插入点类型。

DefaultTabStop

获取或设置默认制表符间距。

IgnoreTrailingCharacterSpacing

获取或设置一个值,该值指示是否将字符间距应用于行中的最后一个字符。

Selection

获取活动文本选择。

UndoLimit

获取或设置可存储在撤消队列中的操作的最大数目。

方法

ApplyDisplayUpdates()

递减控制是立即显示还是批处理文本更新的内部计数器。

BatchDisplayUpdates()

递增一个内部计数器,该计数器控制是立即显示还是批处理文本更新。

BeginUndoGroup()

启用撤消分组。

CanCopy()

确定是否可将文档内容复制到剪贴板。

CanPaste()

确定剪贴板中是否包含可粘贴到文档中的内容。

CanRedo()

确定是否存在一个或多个重做操作。

CanUndo()

确定是否存在一个或多个撤消操作。

ClearUndoRedoHistory()

清空撤消和重做缓冲区。

EndUndoGroup()

关闭撤消分组。

GetDefaultCharacterFormat()

检索文档的默认字符格式设置属性。

GetDefaultParagraphFormat()

检索文档的默认段落格式属性。

GetRange(Int32, Int32)

检索文档的活动文章的新文本范围。

GetRangeFromPoint(Point, PointOptions)

检索屏幕上特定点处或最接近文本范围空 (退化) 。

GetText(TextGetOptions, String)

获取活动文章 (文档) 中的文本。

LoadFromStream(TextSetOptions, IRandomAccessStream)

从流加载文档。

Redo()

反转最近的撤消操作。

SaveToStream(TextGetOptions, IRandomAccessStream)

将文档保存到流中。

SetDefaultCharacterFormat(ITextCharacterFormat)

设置文档的默认字符格式设置属性。

SetDefaultParagraphFormat(ITextParagraphFormat)

设置文档的默认段落格式属性。

SetText(TextSetOptions, String)

设置文档的文本。

Undo()

撤消最近的撤消组。

适用于