TextLine Class

 

Provides an abstract class for supporting formatting services to a line of text.

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

System.Object
  System.Windows.Media.TextFormatting.TextLine

public abstract class TextLine : IDisposable

NameDescription
System_CAPS_protmethodTextLine()

Initializes a new instance of the TextLine class.

System_CAPS_protmethodTextLine(Double)

Initializes a new instance of the TextLine class.

NameDescription
System_CAPS_pubpropertyBaseline

Gets the distance from the top to the baseline of the current TextLine object.

System_CAPS_pubpropertyDependentLength

Gets the number of characters following the last character of the line that may trigger reformatting of the current line.

System_CAPS_pubpropertyExtent

Gets the distance from the top-most to bottom-most black pixel in a line.

System_CAPS_pubpropertyHasCollapsed

Gets a value that indicates whether the line is collapsed.

System_CAPS_pubpropertyHasOverflowed

Gets a value that indicates whether content of the line overflows the specified paragraph width.

System_CAPS_pubpropertyHeight

Gets the height of a line of text.

System_CAPS_pubpropertyIsTruncated

Determines whether the text line is truncated in the middle of a word.

System_CAPS_pubpropertyLength

Gets the total number of TextSource positions of the current line.

System_CAPS_pubpropertyMarkerBaseline

Gets the distance from the edge of the line's highest point to the baseline marker of the line.

System_CAPS_pubpropertyMarkerHeight

Gets the height of a marker for a list item.

System_CAPS_pubpropertyNewlineLength

Gets the number of newline characters at the end of a line.

System_CAPS_pubpropertyOverhangAfter

Gets the distance that black pixels extend beyond the bottom alignment edge of a line.

System_CAPS_pubpropertyOverhangLeading

Gets the distance that black pixels extend prior to the left leading alignment edge of the line.

System_CAPS_pubpropertyOverhangTrailing

Gets the distance that black pixels extend following the right trailing alignment edge of the line.

System_CAPS_pubpropertyPixelsPerDip

Get or sets the PixelsPerDip at which the text should be rendered.

System_CAPS_pubpropertyStart

Gets the distance from the start of a paragraph to the starting point of a line.

System_CAPS_pubpropertyTextBaseline

Gets the distance from the top to the baseline of the line of text.

System_CAPS_pubpropertyTextHeight

Gets the height of the text and any other content in the line.

System_CAPS_pubpropertyTrailingWhitespaceLength

Gets the number of whitespace code points beyond the last non-blank character in a line.

System_CAPS_pubpropertyWidth

Gets the width of a line of text, excluding trailing whitespace characters.

System_CAPS_pubpropertyWidthIncludingTrailingWhitespace

Gets the width of a line of text, including trailing whitespace characters.

NameDescription
System_CAPS_pubmethodCollapse(TextCollapsingProperties[])

Create a collapsed line based on collapsed text properties.

System_CAPS_pubmethodDispose()

Releases all managed and unmanaged resources used by the TextFormatter object.

System_CAPS_pubmethodDraw(DrawingContext, Point, InvertAxes)

Renders the TextLine object based upon the specified DrawingContext.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetBackspaceCaretCharacterHit(CharacterHit)

Gets the previous character hit after backspacing.

System_CAPS_pubmethodGetCharacterHitFromDistance(Double)

Gets the character hit corresponding to the specified distance from the beginning of the line.

System_CAPS_pubmethodGetDistanceFromCharacterHit(CharacterHit)

Gets the distance from the beginning of the line to the specified character hit.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetIndexedGlyphRuns()

Gets an enumerator for enumerating IndexedGlyphRun objects in the TextLine.

System_CAPS_pubmethodGetNextCaretCharacterHit(CharacterHit)

Gets the next character hit for caret navigation.

System_CAPS_pubmethodGetPreviousCaretCharacterHit(CharacterHit)

Gets the previous character hit for caret navigation.

System_CAPS_pubmethodGetTextBounds(Int32, Int32)

Gets an array of bounding rectangles that represent the range of characters within a text line.

System_CAPS_pubmethodGetTextCollapsedRanges()

Gets a collection of collapsed text ranges after a line has been collapsed.

System_CAPS_pubmethodGetTextLineBreak()

Gets the state of the line when broken by line breaking process.

System_CAPS_pubmethodGetTextRunSpans()

Gets a collection of TextRun objects in a text span that are contained within a line.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 3.0

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

Return to top
Show: