TextPointer.DocumentStart 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在與目前位置相關的文字容器中的內容開頭處取得 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。
備註
使用這個屬性所傳回的位置做為基準位置,以便處理其他位置的相對位移。 GetOffsetToPosition和 GetPositionAtOffset 方法提供在位置和位置位移之間平移的方法。
Parent傳 TextPointer 回的 一律是文字容器 (TextBlock 或 FlowDocument) ,而不是 TextElement 。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應