TextBlock.ContentEnd 属性

定义

获取一个指向 TextPointer 中内容的末尾的 TextBlockGets a TextPointer to the end of content in the TextBlock.

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

属性值

指向 TextPointer 中内容的末尾的 TextBlockA TextPointer to the end of content in the TextBlock.

注解

内容末尾被当作插入位置,该位置紧随 TextBlock中最后一个字符之后。The end of content is taken to be the insertion position directly following the last character in the TextBlock.

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

适用于

另请参阅