setTextAlignment:
テキスト配置をセットします
-(void)setTextAlignment:(int)alignment:
解説
テキスト配置をセットします。
【alignment】
● NSRightTextAlignment
● NSCenterTextAlignment
● NSLeftTextAlignment デフォルト
返り値
( void )
なし
引数
( int )alignment
フレームワーク
ApplicationKit
クラス
NSForm
Instance Methods
使用可能
10.0
参照
- setTitleAlignment:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [form1 setTextAlignment:NSLeftTextAlignment]; } @end