| 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は別のボタン
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSControl | 修正日2006.12.26 |