TextLine TextLine TextLine TextLine Class

Definition

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

public ref class TextLine abstract : IDisposable
public abstract class TextLine : IDisposable
type TextLine = class
    interface IDisposable
Public MustInherit Class TextLine
Implements IDisposable
Inheritance
TextLineTextLineTextLineTextLine
Implements

Constructors

TextLine() TextLine() TextLine() TextLine()

Initializes a new instance of the TextLine class.

TextLine(Double) TextLine(Double) TextLine(Double) TextLine(Double)

Initializes a new instance of the TextLine class.

Properties

Baseline Baseline Baseline Baseline

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

DependentLength DependentLength DependentLength DependentLength

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

Extent Extent Extent Extent

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

HasCollapsed HasCollapsed HasCollapsed HasCollapsed

Gets a value that indicates whether the line is collapsed.

HasOverflowed HasOverflowed HasOverflowed HasOverflowed

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

Height Height Height Height

Gets the height of a line of text.

IsTruncated IsTruncated IsTruncated IsTruncated

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

Length Length Length Length

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

MarkerBaseline MarkerBaseline MarkerBaseline MarkerBaseline

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

MarkerHeight MarkerHeight MarkerHeight MarkerHeight

Gets the height of a marker for a list item.

NewlineLength NewlineLength NewlineLength NewlineLength

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

OverhangAfter OverhangAfter OverhangAfter OverhangAfter

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

OverhangLeading OverhangLeading OverhangLeading OverhangLeading

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

OverhangTrailing OverhangTrailing OverhangTrailing OverhangTrailing

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

PixelsPerDip PixelsPerDip PixelsPerDip PixelsPerDip

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

Start Start Start Start

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

TextBaseline TextBaseline TextBaseline TextBaseline

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

TextHeight TextHeight TextHeight TextHeight

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

TrailingWhitespaceLength TrailingWhitespaceLength TrailingWhitespaceLength TrailingWhitespaceLength

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

Width Width Width Width

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

WidthIncludingTrailingWhitespace WidthIncludingTrailingWhitespace WidthIncludingTrailingWhitespace WidthIncludingTrailingWhitespace

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

Methods

Collapse(TextCollapsingProperties[]) Collapse(TextCollapsingProperties[]) Collapse(TextCollapsingProperties[]) Collapse(TextCollapsingProperties[])

Create a collapsed line based on collapsed text properties.

Dispose() Dispose() Dispose() Dispose()

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

Draw(DrawingContext, Point, InvertAxes) Draw(DrawingContext, Point, InvertAxes) Draw(DrawingContext, Point, InvertAxes) Draw(DrawingContext, Point, InvertAxes)

Renders the TextLine object based upon the specified DrawingContext.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBackspaceCaretCharacterHit(CharacterHit) GetBackspaceCaretCharacterHit(CharacterHit) GetBackspaceCaretCharacterHit(CharacterHit) GetBackspaceCaretCharacterHit(CharacterHit)

Gets the previous character hit after backspacing.

GetCharacterHitFromDistance(Double) GetCharacterHitFromDistance(Double) GetCharacterHitFromDistance(Double) GetCharacterHitFromDistance(Double)

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

GetDistanceFromCharacterHit(CharacterHit) GetDistanceFromCharacterHit(CharacterHit) GetDistanceFromCharacterHit(CharacterHit) GetDistanceFromCharacterHit(CharacterHit)

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetIndexedGlyphRuns() GetIndexedGlyphRuns() GetIndexedGlyphRuns() GetIndexedGlyphRuns()

Gets an enumerator for enumerating IndexedGlyphRun objects in the TextLine.

GetNextCaretCharacterHit(CharacterHit) GetNextCaretCharacterHit(CharacterHit) GetNextCaretCharacterHit(CharacterHit) GetNextCaretCharacterHit(CharacterHit)

Gets the next character hit for caret navigation.

GetPreviousCaretCharacterHit(CharacterHit) GetPreviousCaretCharacterHit(CharacterHit) GetPreviousCaretCharacterHit(CharacterHit) GetPreviousCaretCharacterHit(CharacterHit)

Gets the previous character hit for caret navigation.

GetTextBounds(Int32, Int32) GetTextBounds(Int32, Int32) GetTextBounds(Int32, Int32) GetTextBounds(Int32, Int32)

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

GetTextCollapsedRanges() GetTextCollapsedRanges() GetTextCollapsedRanges() GetTextCollapsedRanges()

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

GetTextLineBreak() GetTextLineBreak() GetTextLineBreak() GetTextLineBreak()

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

GetTextRunSpans() GetTextRunSpans() GetTextRunSpans() GetTextRunSpans()

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

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also