Share via


TextPointer.DocumentStart 屬性

定義

在與目前位置相關的文字容器中的內容開頭處取得 TextPointer

public:
 property System::Windows::Documents::TextPointer ^ DocumentStart { System::Windows::Documents::TextPointer ^ get(); };
public System.Windows.Documents.TextPointer DocumentStart { get; }
member this.DocumentStart : System.Windows.Documents.TextPointer
Public ReadOnly Property DocumentStart As TextPointer

屬性值

位於與目前位置相關的文字容器中內容開頭處的 TextPointer

備註

使用這個屬性所傳回的位置做為基準位置,以便處理其他位置的相對位移。 GetOffsetToPositionGetPositionAtOffset 方法提供在位置和位置位移之間平移的方法。

ParentTextPointer 回的 一律是文字容器 (TextBlockFlowDocument) ,而不是 TextElement

適用於

另請參閱