संपादित करें

इसके माध्यम से साझा किया गया


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
TextLine
Implements

Constructors

TextLine()

Initializes a new instance of the TextLine class.

TextLine(Double)

Initializes a new instance of the TextLine class.

Properties

Baseline

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

DependentLength

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

Extent

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

HasCollapsed

Gets a value that indicates whether the line is collapsed.

HasOverflowed

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

Height

Gets the height of a line of text.

IsTruncated

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

Length

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

MarkerBaseline

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

MarkerHeight

Gets the height of a marker for a list item.

NewlineLength

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

OverhangAfter

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

OverhangLeading

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

OverhangTrailing

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

PixelsPerDip

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

Start

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

TextBaseline

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

TextHeight

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

TrailingWhitespaceLength

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

Width

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

WidthIncludingTrailingWhitespace

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

Methods

Collapse(TextCollapsingProperties[])

Create a collapsed line based on collapsed text properties.

Dispose()

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

Draw(DrawingContext, Point, InvertAxes)

Renders the TextLine object based upon the specified DrawingContext.

Equals(Object)

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

(Inherited from Object)
GetBackspaceCaretCharacterHit(CharacterHit)

Gets the previous character hit after backspacing.

GetCharacterHitFromDistance(Double)

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

GetDistanceFromCharacterHit(CharacterHit)

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetIndexedGlyphRuns()

Gets an enumerator for enumerating IndexedGlyphRun objects in the TextLine.

GetNextCaretCharacterHit(CharacterHit)

Gets the next character hit for caret navigation.

GetPreviousCaretCharacterHit(CharacterHit)

Gets the previous character hit for caret navigation.

GetTextBounds(Int32, Int32)

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

GetTextCollapsedRanges()

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

GetTextLineBreak()

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

GetTextRunSpans()

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

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also