TextLine.GetTextBounds(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一組邊界矩形陣列,代表文字行內字元的範圍。
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 。