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 A 位於與當前位置相關的文字容器內容開頭。

備註

以此屬性回傳的位置作為基準位置,進行相對偏移處理。 GetOffsetToPositionGetPositionAtOffset 方法提供了位置間的平移與位置偏移量。

Parent回傳TextPointer的 總是文字容器(TextBlockFlowDocument),而非 TextElement

適用於

另請參閱