PageSettingsとは? わかりやすく解説

Weblio 辞書 > コンピュータ > IT用語辞典 > PageSettingsの意味・解説 

ページ設定

読み方ページせってい
【英】Page Settings

ページ設定とは、Microsoft WordMicrosoft Excelなどのアプリケーションソフトにおいて、文書印刷した場合余白フッターなどを設定するための機能のことである。

ページ設定の項目は、「ファイルメニューから選択できる選択するダイアログボックス開き各種設定変更することができる。

オフィスソフトのほかの用語一覧
ワープロソフト:  EGWORD  倍角文字  ハイフネーション  ページ設定  左寄せ  表記ゆれ  保護

PageSettings クラス

単一印刷ページ適用する設定指定します

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

<SerializableAttribute> _
Public Class PageSettings
    Implements ICloneable
[SerializableAttribute] 
public class PageSettings : ICloneable
[SerializableAttribute] 
public ref class PageSettings : ICloneable
/** @attribute SerializableAttribute() */ 
public class PageSettings implements ICloneable
SerializableAttribute 
public class PageSettings implements ICloneable
解説解説

PageSettings クラス使用してページ印刷方法変更する設定指定します通常、PrintDocument.DefaultPageSettings プロパティ使用して印刷するすべてのページ既定設定指定しますページごとに設定指定するには、PrintDocument.PrintPage イベントまたは PrintDocument.QueryPageSettings イベント処理しそれぞれ PrintPageEventArgs または QueryPageSettingsEventArgs に含まれる PageSettings 引数変更します

PrintDocument イベント処理詳細については、PrintDocument クラストピック概要参照してください印刷詳細については、System.Drawing.Printing 名前空間トピック概要参照してください

使用例使用例

PrintDocument.DefaultPageSettings プロパティ使用して文書既定用紙方向を横に設定しPrint メソッド使用して文書印刷するコード例次に示します。この例には、次の 3 つの必要条件あります

この例では、System.DrawingSystem.Drawing.Printing、および System.IO の各名前空間使用します

Public Sub Printing()
    Try
        streamToPrint = New StreamReader(filePath)
        Try
            printFont = New Font("Arial",
 10)
            Dim pd As New
 PrintDocument()
            AddHandler pd.PrintPage, AddressOf
 pd_PrintPage
            pd.PrinterSettings.PrinterName = printer
            ' Set the page orientation to landscape.
            pd.DefaultPageSettings.Landscape = True
            pd.Print()
        Finally
            streamToPrint.Close()
        End Try
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    End Try
End Sub
       
public void Printing() {
   try {
     streamToPrint = new StreamReader (filePath);
     try {
       printFont = new Font("Arial", 10);
       PrintDocument pd = new PrintDocument(); 
       pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
       pd.PrinterSettings.PrinterName = printer;
       // Set the page orientation to landscape.
       pd.DefaultPageSettings.Landscape = true;
       pd.Print();
     } 
     finally {
       streamToPrint.Close() ;
     }
   } 
   catch(Exception ex) { 
     MessageBox.Show(ex.Message);
   }
 }
 
public:
   void Printing()
   {
      try
      {
         streamToPrint = gcnew StreamReader( filePath );
         try
         {
            printFont = gcnew Font( "Arial",10 );
            PrintDocument^ pd = gcnew PrintDocument;
            pd->PrintPage += gcnew PrintPageEventHandler(
               this, &Sample::pd_PrintPage );
            pd->PrinterSettings->PrinterName = printer;
            // Set the page orientation to landscape.
            pd->DefaultPageSettings->Landscape = true;
            pd->Print();
         }
         finally
         {
            streamToPrint->Close();
         }
      }
      catch ( Exception^ ex ) 
      {
         MessageBox::Show( ex->Message );
      }
   }
public void Printing()
{
    try {
        streamToPrint = new StreamReader(filePath);
        try {
            printFont = new Font("Arial", 10);
            PrintDocument pd = new PrintDocument();
            pd.add_PrintPage(new PrintPageEventHandler(pd_PrintPage));
            pd.get_PrinterSettings().set_PrinterName(printer);

            // Set the page orientation to landscape.
            pd.get_DefaultPageSettings().set_Landscape(true);
            pd.Print();
        }
        finally {
            streamToPrint.Close();
        }
    }
    catch (System.Exception ex) {
        MessageBox.Show(ex.get_Message());
    }
} //Printing
継承階層継承階層
System.Object
  System.Drawing.Printing.PageSettings
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PageSettings メンバ
System.Drawing.Printing 名前空間
PrintDocument
PrinterSettings

PageSettings コンストラクタ ()


PageSettings コンストラクタ (PrinterSettings)

プリンタ指定して、PageSettings クラス新しインスタンス初期化します。

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

Public Sub New ( _
    printerSettings As PrinterSettings _
)
Dim printerSettings As PrinterSettings

Dim instance As New PageSettings(printerSettings)
public PageSettings (
    PrinterSettings printerSettings
)
public:
PageSettings (
    PrinterSettings^ printerSettings
)
public PageSettings (
    PrinterSettings printerSettings
)
public function PageSettings (
    printerSettings : PrinterSettings
)

パラメータ

printerSettings

使用するプリンタ記述する PrinterSettings。

解説解説

PageSettings コンストラクタは、PageSettings新しインスタンス初期化し、PrinterSettings プロパティ設定する理に似てます。

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

PageSettings コンストラクタ

PageSettings クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
PageSettings () 既定プリンタ使用してPageSettings クラス新しインスタンス初期化します。
PageSettings (PrinterSettings) プリンタ指定してPageSettings クラス新しインスタンス初期化します。
参照参照

関連項目

PageSettings クラス
PageSettings メンバ
System.Drawing.Printing 名前空間

PageSettings プロパティ


PageSettings メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

PageSettings クラス
System.Drawing.Printing 名前空間
PrintDocument
PrinterSettings

PageSettings メンバ

単一印刷ページ適用する設定指定します

PageSettings データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

PageSettings クラス
System.Drawing.Printing 名前空間
PrintDocument
PrinterSettings


英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PageSettings」の関連用語

PageSettingsのお隣キーワード
検索ランキング

   

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



PageSettingsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
IT用語辞典バイナリIT用語辞典バイナリ
Copyright © 2005-2024 Weblio 辞書 IT用語辞典バイナリさくいん。 この記事は、IT用語辞典バイナリページ設定の記事を利用しております。
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS