SPREAD for WPF 3.0J - GcSpreadSheet
GetRectFromCharacterIndex(Int32,Boolean) メソッド

GrapeCity.Wpf.SpreadSheet.CellType アセンブリ > GrapeCity.Wpf.SpreadSheet.CellType.Editors 名前空間 > GcTextBox クラス > GetRectFromCharacterIndex メソッド : GetRectFromCharacterIndex(Int32,Boolean) メソッド
外接する四角形を取得する文字の 0 から始まる文字インデックス。
文字のトレーリングエッジを取得する場合は true。文字のリーディングエッジを取得する場合は false
指定したインデックスにある文字のリーディングエッジまたはトレーリングエッジの四角形を返します。
シンタックス
'宣言
 
Public Overloads Function GetRectFromCharacterIndex( _
   ByVal charIndex As System.Integer, _
   ByVal trailingEdge As System.Boolean _
) As System.Windows.Rect
public System.Windows.Rect GetRectFromCharacterIndex( 
   System.int charIndex,
   System.bool trailingEdge
)

パラメータ

charIndex
外接する四角形を取得する文字の 0 から始まる文字インデックス。
trailingEdge
文字のトレーリングエッジを取得する場合は true。文字のリーディングエッジを取得する場合は false

戻り値の型

指定した文字インデックスにある文字に外接する四角形。外接する四角形を決定できない場合は System.Windows.Rect.Empty
例外
例外解説
charIndex が負であるか、内容の長さを超えています。
参照

GcTextBox クラス
GcTextBox メンバ
オーバーロード一覧