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