setBottomMargin:
下マージンをセットします(pointで)
-(void)setBottomMargin:(float)margin:
解説
下マージンをセットします(pointで)
返り値
( void )
なし
引数
( float )margin
フレームワーク
ApplicationKit
クラス
NSPrintInfo
Instance Methods
使用可能
10.0
参照
- bottomMargin
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSPrintInfo *pInfo = [NSPrintInfo sharedPrintInfo] ; NSPageLayout *pageLayout = [NSPageLayout pageLayout]; [pInfo setBottomMargin:10.0]; [pageLayout beginSheetWithPrintInfo:pInfo modalForWindow:[sender window] delegate:self didEndSelector:@selector(didEndPageLayout) contextInfo:nil ]; NSLog([NSString stringWithFormat:@"%.1f",[pInfo bottomMargin]]); } -(void)didEndPageLayout { NSLog(@"close"); } @end