TextBlock.ContentEnd Property

Definition

Gets a TextPointer to the end of content in the TextBlock.

C#
public System.Windows.Documents.TextPointer ContentEnd { get; }

Property Value

A TextPointer to the end of content in the TextBlock.

Remarks

The end of content is taken to be the insertion position directly following the last character in the TextBlock.

The TextPointer returned by this property always has its LogicalDirection set to Forward.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also