PaperSource 클래스

정의

프린터에 용지를 공급할 용지함을 지정합니다.

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

예제

다음 코드 예제에서는 comboPaperSource 프린터의 지원되는 용지 원본으로 콤보 상자를 채웁니다. 는 SourceName 콤보 상자의 속성을 통해 추가되는 항목에 대한 표시 문자열을 DisplayMember 제공하는 속성으로 식별됩니다. 이 예제에서는 라는 printDoc 변수가 PrintDocument 있고 특정 콤보 상자가 있어야 합니다.

// Add list of paper sources found on the printer to the combo box.
// The DisplayMember property is used to identify the property that will provide the display String*.
comboPaperSource->DisplayMember = "SourceName";
PaperSource^ pkSource;
for ( int i = 0; i < printDoc->PrinterSettings->PaperSources->Count; i++ )
{
   pkSource = printDoc->PrinterSettings->PaperSources[ i ];
   comboPaperSource->Items->Add( pkSource );
}
// Add list of paper sources found on the printer to the combo box.
// The DisplayMember property is used to identify the property that will provide the display string.
comboPaperSource.DisplayMember="SourceName";

PaperSource pkSource;
for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count; i++){
    pkSource = printDoc.PrinterSettings.PaperSources[i];
    comboPaperSource.Items.Add(pkSource);
}
' Add list of paper sources found on the printer to the combo box.
' The DisplayMember property is used to identify the property that will provide the display string.
comboPaperSource.DisplayMember = "SourceName"

Dim pkSource As PaperSource
For i = 0 to printDoc.PrinterSettings.PaperSources.Count - 1
    pkSource = printDoc.PrinterSettings.PaperSources.Item(i)
    comboPaperSource.Items.Add(pkSource)
Next

설명

이 클래스는 및 PageSettings.PaperSource 속성에서 PrinterSettings.PaperSources 프린터에서 사용할 수 있는 용지류 트레이를 가져와 페이지의 용지 원본을 각각 설정하는 데 사용됩니다.

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

생성자

PaperSource()

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

속성

Kind

용지 공급을 가져옵니다.

RawKind

PaperSourceKind 값 중 하나나 사용자 지정 값을 나타내는 정수를 가져오거나 설정합니다.

SourceName

용지 공급의 이름을 가져오거나 설정합니다.

메서드

Equals(Object)

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

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

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

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

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

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

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

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

PaperSource에 대한 정보를 문자열 형식으로 제공합니다.

적용 대상

추가 정보