intAttribute:forGlyphAtIndex:
カスタム属性値を返します
-(int)intAttribute:(int)attributeTag: forGlyphAtIndex:(unsigned)glyphIndex:
解説
カスタム属性値を返します。
【attributeTag】属性タグ
0以上のタグは予約済み、負の値を定義することはできます。
- setIntAttribute:value:forGlyphAtIndex:でセットすることができる
返り値
( int )
整数値
引数
( int )attributeTag
属性タグ
( unsigned )glyphIndex
グリフ番号
フレームワーク
ApplicationKit
クラス
NSLayoutManager
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはTextView NSLayoutManager *layM1; layM1 = [myOutlet1 layoutManager]; NSLog(@"%d",[layM1 intAttribute:1 forGlyphAtIndex:60]); } @end