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