cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:
描画される矩形を返します
-(NSRect)cellFrameForTextContainer:(NSTextContainer *)textContainer: proposedLineFragment:(NSRect)lineFrag: glyphPosition:(NSPoint)position: characterIndex:(unsigned)charIndex:
解説
描画される矩形を返します。
返り値
( NSRect )
矩形
引数
( NSTextContainer * )textContainer
テキストコンテナ
( NSRect )lineFrag
矩形
( NSPoint )position
位置
( unsigned )charIndex
フレームワーク
ApplicationKit
クラス
NSTextAttachmentCell
Instance Methods
使用可能
10.0
参照
例文
rect = [[theAttachment attachmentCell] cellFrameForTextContainer:[myOutlet textContainer] proposedLineFragment:NSMakeRect(0,0,50,50) glyphPosition:NSMakePoint(30,30) characterIndex:1 ];