PrintDocument.OriginAtMargins プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PrintDocument.OriginAtMargins プロパティの意味・解説 

PrintDocument.OriginAtMargins プロパティ

ページに関連付けられているグラフィック オブジェクトの位置が、ユーザー指定の余白の内側にあるか、ページの印刷可能領域の左上隅にあるかを示す値を取得または設定します。

名前空間: System.Drawing.Printing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Dim instance As PrintDocument
Dim value As Boolean

value = instance.OriginAtMargins

instance.OriginAtMargins = value
public bool OriginAtMargins { get;
 set; }
public:
property bool OriginAtMargins {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_OriginAtMargins ()

/** @property */
public void set_OriginAtMargins (boolean value)
public function get OriginAtMargins
 () : boolean

public function set OriginAtMargins
 (value : boolean)

プロパティ値
グラフィックの原点がページの余白から始まっている場合は true、グラフィックの原点が印刷可能ページの左上隅にある場合は false。既定値は false です。

解説解説

印刷可能な領域を計算するためには、用紙の物理的なサイズ、ページの余白、および Graphics オブジェクトの原点が必要です。OriginAtMargins が true の場合、Graphics オブジェクトの位置は、PageSettings.Margins プロパティの値と、ページの印刷可能領域を考慮して決定されます。OriginAtMargins が false の場合は、ページの印刷可能領域だけを使用して Graphics オブジェクトの原点が決定されます。PageSettings.Margins の値は無視されます。

たとえば、OriginAtMargins が true で、PageSettings.Margins が上下左右それぞれ 1 インチに設定されている場合、PrintPageEventArgs に含まれる Graphics オブジェクトの位置は、ページの左上隅から 1 インチの場所になります。ページの印刷可能領域が上下左右それぞれ 0.25 インチで、OriginAtMargins が false の場合、Graphics オブジェクトの位置は、ページの左上隅から 0.25 インチの場所になります。

メモメモ

ページの印刷可能領域はプリンタによって異なり、対称であるとは限りません。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PrintDocument クラス
PrintDocument メンバ
System.Drawing.Printing 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

PrintDocument.OriginAtMargins プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PrintDocument.OriginAtMargins プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS