baseWritingDirection
段落スタイルの向きを返します
解説
段落スタイルの向きを返します。
【NSWritingDirection】
● NSWritingDirectionLeftToRight 左から右
● NSWritingDirectionRightToLeft 右から左
返り値
( NSWritingDirection )
文字の流れ方向
引数
フレームワーク
ApplicationKit
クラス
NSParagraphStyle
Instance Methods
使用可能
10.2
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSMutableParagraphStyle *pStyle = [NSMutableParagraphStyle defaultParagraphStyle]; [pStyle setBaseWritingDirection:NSWritingDirectionLeftToRight]; if ([pStyle baseWritingDirection]) { NSLog(@"l to r"); }else{ NSLog(@"r to l"); } } @end