語言

TextLine.GetTextBounds(Int32, Int32) 方法

定義

會得到一組邊界矩形陣列,代表文字行內字元的範圍。

public:
 abstract System::Collections::Generic::IList<System::Windows::Media::TextFormatting::TextBounds ^> ^ GetTextBounds(int firstTextSourceCharacterIndex, int textLength);
public abstract System.Collections.Generic.IList<System.Windows.Media.TextFormatting.TextBounds> GetTextBounds(int firstTextSourceCharacterIndex, int textLength);
abstract member GetTextBounds : int * int -> System.Collections.Generic.IList<System.Windows.Media.TextFormatting.TextBounds>
Public MustOverride Function GetTextBounds (firstTextSourceCharacterIndex As Integer, textLength As Integer) As IList(Of TextBounds)

參數

firstTextSourceCharacterIndex
Int32

指定範圍的第一個字元索引。

textLength
Int32

指定範圍內的字元數。

傳回

一個代表包圍矩形的物件清單 TextBounds 。

適用於