cellFrameAtRow:column:
行と列で指定したセルの矩形を返します
-(NSRect)cellFrameAtRow:(int)row: column:(int)column:
解説
行と列で指定したセルの矩形を返します。
返り値
( NSRect )
矩形
引数
( int )row
行の番号
( int )column
列の番号
フレームワーク
ApplicationKit
クラス
NSMatrix
Instance Methods
使用可能
10.0
参照
- cellSize
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSRect rect =[myOutlet cellFrameAtRow:1 column:2]; NSLog([NSString stringWithFormat:@"%.1f,%.1f,%.1f,%.1f",rect.origin.x,rect.origin.y,rect.size.width,rect.size.height]); } @end