PrinterResolution 클래스

정의

프린터에서 지원하는 해상도를 나타냅니다.

public ref class PrinterResolution
public class PrinterResolution
[System.Serializable]
public class PrinterResolution
type PrinterResolution = class
[<System.Serializable>]
type PrinterResolution = class
Public Class PrinterResolution
상속
PrinterResolution
특성

예제

다음 코드 예제에서는 comboPrintResolution 지원되는 해상도로 콤보 상자를 채웁니다. 이 예제에서는 라는 printDoc 변수가 PrintDocument 있고 특정 콤보 상자가 있다고 가정합니다.

// 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

설명

이 클래스는 및 PageSettings.PrinterResolution 속성에서 프린터에서 사용할 수 있는 프린터 해상도를 가져와 페이지의 인쇄 해상도를 각각 설정하는 데 사용됩니다PrinterSettings.PrinterResolutions.

사용 하 여는 Kind 프린터 해상도 형식이 값 Custom인지 여부를 확인 하려면 속성입니다PrinterResolutionKind. 그렇다면 및 Y 속성을 사용하여 X 각각 가로 및 세로 방향으로 프린터 해상도를 결정합니다.

인쇄에 대한 자세한 내용은 네임스페이스 개요를 System.Drawing.Printing 참조하세요.

생성자

PrinterResolution()

PrinterResolution 클래스의 새 인스턴스를 초기화합니다.

속성

Kind

프린터 해상도를 가져오거나 설정합니다.

X

가로 프린터 해상도(dpi)를 가져옵니다.

Y

세로 프린터 해상도(dpi)를 가져옵니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

이 메서드는 ToString() 메서드를 재정의합니다.

적용 대상

추가 정보