setContainerSize:
コンテナサイズをセットします
-(void)setContainerSize:(NSSize)aSize:
解説
コンテナサイズをセットします。
返り値
( void )
なし
引数
( NSSize )aSize
セットするサイズ
フレームワーク
ApplicationKit
クラス
NSTextContainer
Instance Methods
使用可能
10.0
参照
- setTextContainerInset:(NSTextView)
- containerSize
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはTextView NSLayoutManager *layM1; NSTextContainer *textContainer = [[NSTextContainer allocWithZone:NULL] initWithContainerSize:NSMakeSize(1.0e6, 1.0e6)]; layM1 = [myOutlet1 layoutManager]; [layM1 addTextContainer:textContainer]; NSLog([[layM1 textContainers] description]); [textContainer setContainerSize:NSMakeSize(100, 100)]; } @end