Export (0) Print
Expand All

TextCollapsedRange Class

Represents the range of characters and its width measurement for collapsed text within a line.

System.Object
  System.Windows.Media.TextFormatting.TextCollapsedRange

Namespace:  System.Windows.Media.TextFormatting
Assembly:  PresentationCore (in PresentationCore.dll)

public sealed class TextCollapsedRange

The TextCollapsedRange type exposes the following members.

  NameDescription
Public propertyLengthGets the number of characters for the collapsed text.
Public propertyTextSourceCharacterIndexGets the index to the first character in the TextSource that represents collapsed text characters.
Public propertyWidthThe total width of collapsed text characters.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Line collapsing is the ability to reduce displaying space for a line by not showing part of the line's text. Depending on the collapsing style, a collapsing symbol may be shown at the location where the collapsed text occurred.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft