frameOfCellAtColumn:row:
指定した行と列にあるセルの矩形を返します
-(NSRect)frameOfCellAtColumn:(int)columnIndex: row:(int)rowIndex:
解説
指定した行と列にあるセルの矩形を返します。
行番号、列番号は0から始まる整数です。
テーブルビューの範囲外を指定するとNSZeroRectを返します。
返り値
( NSRect )
矩形
引数
( int )columnIndex
列番号
( int )rowIndex
行番号
フレームワーク
ApplicationKit
クラス
NSTableView
Instance Methods
使用可能
10.0
参照
- rectOfColumn:
- rectOfRow:
例文
- (IBAction)myAction:(id)sender;// { NSRect rect = [table frameOfCellAtColumn:1 row:1]; NSLog([NSString stringWithFormat:@"%.1f,%.1f,%.1f,%.1f",rect.origin.x,rect.origin.y,rect.size.width,rect.size.height]); }