NSControl:setAlignment:
Home 目次>ApplicationKit>NSControl

setAlignment:

コントロールの文字揃えをセットします


-(void) setAlignment:(NSTextAlignment)mode


【返り値】
   voidなし
【パラメータ】
   mode文字揃え
● NSLeftTextAlignment (左揃え)
● NSRightTextAlignment (右揃え)
● NSCenterTextAlignment (センター揃え)
● NSJustifiedTextAlignment (ジャスティファイ)
● NSNaturalTextAlignment(デフォルト)


【解説】

コントロールの文字揃えをセットします。
編集中なら、編集を中止します。



【例文】


[sender setTitle:@"text"];//senderはボタン
[sender setAlignment:NSLeftTextAlignment];
[myOutlet setAlignment:[sender alignment]];//senderは別のボタン


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSControl
修正日2006.12.26