Class PrintOptions

Class PrintOptions

名称: Aspose.Note.Saving 合計: Aspose.Note.dll (25.4.0)

文書を印刷するためのオプションです。

public class PrintOptions
   {
       private bool _copies;
       private int _from;
       private int _to;
       public bool Copies
       {
           get { return this._copies; }
           set { this._copies = value; }
       }
       public int From
       {
           get { return this._from; }
           set { this._from = value; }
       }
       public int To
       {
           get { return this._to; }
           set { this._to = value; }
       }
   }

Inheritance

object PrintOptions

相続人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

指定されたオプションを含む標準 Windows 対話を使用してプリンターに文書を送信する方法を示します。

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   var document = new Aspose.Note.Document(dataDir + "Aspose.one");
   var printerSettings = new PrinterSettings()
   {
      FromPage = 0,
      ToPage = 10
   };
   printerSettings.DefaultPageSettings.Landscape = true;
   printerSettings.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 150, 50);
   document.Print(new PrintOptions()
   {
      PrinterSettings = printerSettings,
      Resolution = 1200,
      PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(),
      DocumentName = "Test.one"
   });

Constructors

オプション( )

public PrintOptions()
   {
   }

Properties

DocumentName

ドキュメント名を表示する(たとえば、印刷状態の対話ボックスまたはプリンターライン)を取得または設定します。

public string DocumentName
   {
      get;
      set;
   }

不動産価値

string

Examples

指定されたオプションを含む標準 Windows 対話を使用してプリンターに文書を送信する方法を示します。

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   var document = new Aspose.Note.Document(dataDir + "Aspose.one");
   var printerSettings = new PrinterSettings()
   {
      FromPage = 0,
      ToPage = 10
   };
   printerSettings.DefaultPageSettings.Landscape = true;
   printerSettings.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 150, 50);
   document.Print(new PrintOptions()
   {
      PrinterSettings = printerSettings,
      Resolution = 1200,
      PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(),
      DocumentName = "Test.one"
   });

PageSplittingAlgorithm

ページ分割に使用されるアルゴリズムを取得または設定します。

public PageSplittingAlgorithm PageSplittingAlgorithm
   {
      get;
      set;
   }

不動産価値

PageSplittingAlgorithm

Examples

指定されたオプションを含む標準 Windows 対話を使用してプリンターに文書を送信する方法を示します。

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   var document = new Aspose.Note.Document(dataDir + "Aspose.one");
   var printerSettings = new PrinterSettings()
   {
      FromPage = 0,
      ToPage = 10
   };
   printerSettings.DefaultPageSettings.Landscape = true;
   printerSettings.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 150, 50);
   document.Print(new PrintOptions()
   {
      PrinterSettings = printerSettings,
      Resolution = 1200,
      PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(),
      DocumentName = "Test.one"
   });

PrinterSettings

プリンターの設定を取得または設定します。

public PrinterSettings PrinterSettings
   {
      get;
      set;
   }

不動産価値

PrinterSettings

Examples

指定されたオプションを含む標準 Windows 対話を使用してプリンターに文書を送信する方法を示します。

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   var document = new Aspose.Note.Document(dataDir + "Aspose.one");
   var printerSettings = new PrinterSettings()
   {
       FromPage = 0,
       ToPage = 10
   };
   printerSettings.DefaultPageSettings.Landscape = true;
   printerSettings.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 150, 50);
   document.Print(new PrintOptions()
   {
       PrinterSettings = printerSettings,
       Resolution = 1200,
       PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(),
       DocumentName = "Test.one"
   });

Resolution

生成された画像の解像度を、インチ当たりの点で取得または設定します。

public float Resolution
   {
      get;
      set;
   }

不動産価値

float

Examples

指定されたオプションを含む標準 Windows 対話を使用してプリンターに文書を送信する方法を示します。

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   var document = new Aspose.Note.Document(dataDir + "Aspose.one");
   var printerSettings = new PrinterSettings()
   {
      FromPage = 0,
      ToPage = 10
   };
   printerSettings.DefaultPageSettings.Landscape = true;
   printerSettings.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 150, 50);
   document.Print(new PrintOptions()
   {
      PrinterSettings = printerSettings,
      Resolution = 1200,
      PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(),
      DocumentName = "Test.one"
   });

Remarks

デフォルト値は96です。

 日本語