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()

復原最新的復原群組。

適用於