TextLine TextLine TextLine TextLine Class

定義

為文字行提供用來支援格式化服務的抽象類別。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
繼承
TextLineTextLineTextLineTextLine
實作

建構函式

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

初始化 TextLine 類別的新執行個體。Initializes a new instance of the TextLine class.

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

初始化 TextLine 類別的新執行個體。Initializes a new instance of the TextLine class.

屬性

Baseline Baseline Baseline Baseline

取得目前 TextLine 物件頂端到基準線的距離。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

取得目前行的 TextSource 位置總數。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

取得或設定應轉譯文字的 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.

方法

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

根據摺疊文字屬性建立摺疊行。Create a collapsed line based on collapsed text properties.

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

釋放 TextFormatter 物件使用的所有 Managed 和 Unmanaged 資源。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)

根據指定的 DrawingContext 來呈現 TextLine 物件。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()

取得列舉值,用於列舉 IndexedGlyphRun 中的 TextLine 物件。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()

取得文字範圍中包含在一行內的 TextRun 物件集合。Gets a collection of TextRun objects in a text span that are contained within a line.

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

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複本 (Shallow Copy)。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)

適用於

另請參閱