NSFont:widthOfString:
Home 目次>ApplicationKit>NSFont

widthOfString:

文字の幅を返します


-(float) widthOfString:(NSString *)aString


【返り値】
   float文字の幅
【パラメータ】
   aString幅を返す文字


【解説】

文字の幅を返します。
Mac OS X v10.4 以降使えません。



【例文】


[font widthOfString:@"x"];
///
[tf setFloatValue:[fnt widthOfString:@"a"]];


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

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

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

良い 

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

Home 目次>ApplicationKit>NSFont
修正日2007.4.9