PrinterSettings.PrinterResolutions 속성

정의

이 프린터에서 지원하는 모든 해상도를 가져옵니다.

public:
 property System::Drawing::Printing::PrinterSettings::PrinterResolutionCollection ^ PrinterResolutions { System::Drawing::Printing::PrinterSettings::PrinterResolutionCollection ^ get(); };
public System.Drawing.Printing.PrinterSettings.PrinterResolutionCollection PrinterResolutions { get; }
member this.PrinterResolutions : System.Drawing.Printing.PrinterSettings.PrinterResolutionCollection
Public ReadOnly Property PrinterResolutions As PrinterSettings.PrinterResolutionCollection

속성 값

PrinterSettings.PrinterResolutionCollection

이 프린터에서 지원하는 해상도를 나타내는 PrinterSettings.PrinterResolutionCollection입니다.

예제

다음 코드 예제에서는 지원되는 해상도로 콤보 상자를 채웁 comboPrintResolution 니다. 이 예제에서는 명명 printDocPrintDocument 변수가 존재하고 특정 콤보 상자가 있어야 합니다.

// Add list of printer resolutions found on the printer to the combobox.
// The PrinterResolution's ToString() method will be used to provide the display String.
PrinterResolution^ pkResolution;
for ( int i = 0; i < printDoc->PrinterSettings->PrinterResolutions->Count; i++ )
{
   pkResolution = printDoc->PrinterSettings->PrinterResolutions[ i ];
   comboPrintResolution->Items->Add( pkResolution );
}
// Add list of printer resolutions found on the printer to the combobox.
// The PrinterResolution's ToString() method will be used to provide the display string.

PrinterResolution pkResolution;
for (int i = 0; i < printDoc.PrinterSettings.PrinterResolutions.Count; i++){
    pkResolution = printDoc.PrinterSettings.PrinterResolutions[i];
    comboPrintResolution.Items.Add(pkResolution);
}
' Add list of printer resolutions found on the printer to the combobox.
' The PrinterResolution's ToString() method will be used to provide the display string.
Dim pkResolution As PrinterResolution
For i = 0 to printDoc.PrinterSettings.PrinterResolutions.Count - 1
    pkResolution = printDoc.PrinterSettings.PrinterResolutions.Item(i)
    comboPrintResolution.Items.Add(pkResolution)
Next

설명

속성 PrinterSettings.PrinterResolutionCollection 에서 PrinterResolution 지원되는 PrinterResolution.Kind 프린터 해상도를 나타내는 인스턴스(값 중 하나가 포함됨)가 PrinterResolutionKind 포함됩니다.

일반적으로 속성을 통해 페이지의 용지 원본을 PageSettings.PrinterResolution 컬렉션을 통해 PrinterResolutions 사용할 수 있는 유효한 PrinterResolution 것으로 설정합니다.

Custom경우 PrinterResolutionKind 해당 및 Y 속성을 사용하여 X 각각 가로 및 세로 방향으로 사용자 지정 프린터 해상도를 결정합니다.

적용 대상

추가 정보