TextBlock.ContentStart 属性

定义

获取一个指向 TextPointer 中内容的开始位置的 TextBlockGets a TextPointer to the beginning of content in the TextBlock.

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

属性值

指向 TextPointer 中内容的开始位置的 TextBlockA TextPointer to the beginning of content in the TextBlock.

注解

内容的开头将作为插入位置,该位置位于 TextBlock的第一个字符之前。The beginning of content is taken to be the insertion position directly preceding the first character in the TextBlock.

此属性返回的 TextPointer 始终将其 LogicalDirection 设置为 "Backward"。The TextPointer returned by this property always has its LogicalDirection set to Backward.

适用于

另请参阅