PrinterSettings.PrinterResolutionCollection 클래스

정의

PrinterResolution 개체의 컬렉션을 포함합니다.

public: ref class PrinterSettings::PrinterResolutionCollection : System::Collections::ICollection
public class PrinterSettings.PrinterResolutionCollection : System.Collections.ICollection
type PrinterSettings.PrinterResolutionCollection = class
    interface ICollection
    interface IEnumerable
Public Class PrinterSettings.PrinterResolutionCollection
Implements ICollection
상속
PrinterSettings.PrinterResolutionCollection
구현

예제

다음 코드 예제에서는 지원되는 해상도로 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

설명

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

일반적으로 속성을 통해 프린터의 해상도를 PageSettings.PrinterResolution 컬렉션을 통해 사용할 수 있는 유효한 PrinterResolution 인스턴스로 PrinterResolutions 설정합니다.

가 이CustomPrinterResolutionKindY 속성을 사용하여 X 각각 가로 및 세로 방향으로 사용자 지정 프린터 해상도를 결정합니다.

생성자

PrinterSettings.PrinterResolutionCollection(PrinterResolution[])

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

속성

Count

컬렉션에서 사용할 수 있는 프린터 해상도의 수를 가져옵니다.

Item[Int32]

지정된 인덱스에 해당하는 PrinterResolution을 가져옵니다.

메서드

Add(PrinterResolution)

PrinterResolution을 컬렉션의 끝에 추가합니다.

CopyTo(PrinterResolution[], Int32)

지정된 인덱스에서 시작하여 현재 PrinterSettings.PrinterResolutionCollection의 내용을 지정된 배열에 복사합니다.

Equals(Object)

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

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

컬렉션을 반복할 수 있는 열거자를 반환합니다.

GetHashCode()

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

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

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

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

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

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

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

ICollection.CopyTo(Array, Int32)

이 멤버에 대한 설명은 CopyTo(Array, Int32)를 참조하세요.

ICollection.Count

이 멤버에 대한 설명은 Count를 참조하세요.

ICollection.IsSynchronized

이 멤버에 대한 설명은 IsSynchronized를 참조하세요.

ICollection.SyncRoot

이 멤버에 대한 설명은 SyncRoot를 참조하세요.

IEnumerable.GetEnumerator()

이 멤버에 대한 설명은 GetEnumerator()를 참조하세요.

확장 메서드

Cast<TResult>(IEnumerable)

IEnumerable의 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable의 요소를 필터링합니다.

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

AsQueryable(IEnumerable)

IEnumerableIQueryable로 변환합니다.

적용 대상

추가 정보