getFirstUnlaidCharacterIndex:glyphIndex:
最初の配置できない文字番号、グリフ番号を返します
-(void)getFirstUnlaidCharacterIndex:(unsigned *)charIndex: glyphIndex:(unsigned *)glyphIndex:
解説
無効なレイアウト情報が設定されている最初の配置できない文字番号、グリフ番号を返します。
返り値
( void )
なし
引数
( unsigned * )charIndex
文字番号
( unsigned * )glyphIndex
グリフ番号
フレームワーク
ApplicationKit
クラス
NSLayoutManager
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはTextView unsigned charIndex; unsigned glyphIndex; NSLayoutManager *layM; layM = [myOutlet layoutManager]; [layM getFirstUnlaidCharacterIndex:&charIndex glyphIndex:&glyphIndex]; NSLog([NSString stringWithFormat:@"%u , %u",charIndex,glyphIndex]); } @end