Cursor 생성자

정의

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

오버로드

Cursor(Stream)

지정된 Stream에서 Cursor 클래스의 새 인스턴스를 초기화합니다.

Cursor(String)

지정된 .ani 또는 .cur 파일을 사용하여 Cursor 클래스의 새 인스턴스를 초기화합니다.

Cursor(Stream, Boolean)

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

Cursor(String, Boolean)

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

Cursor(Stream)

지정된 Stream에서 Cursor 클래스의 새 인스턴스를 초기화합니다.

public:
 Cursor(System::IO::Stream ^ cursorStream);
public Cursor (System.IO.Stream cursorStream);
new System.Windows.Input.Cursor : System.IO.Stream -> System.Windows.Input.Cursor
Public Sub New (cursorStream As Stream)

매개 변수

cursorStream
Stream

커서가 들어 있는 Stream입니다.

예외

cursorStream이(가) null인 경우

이 생성자는 임시 파일을 만들 수 없습니다.

설명

Stream경우 WPF는 임시 파일에 데이터를 쓴 다음 파일에서 을 Cursor 로드합니다. 이 생성자가 임시 파일을 만들 수 없는 경우 가 IOException throw될 수 있습니다. 예를 들어 IOException 고유한 임시 파일을 사용할 수 없는 경우 이 throw될 수 있습니다. 이 오류를 resolve 불필요한 임시 파일을 삭제해 보세요.

추가 정보

적용 대상

Cursor(String)

지정된 .ani 또는 .cur 파일을 사용하여 Cursor 클래스의 새 인스턴스를 초기화합니다.

public:
 Cursor(System::String ^ cursorFile);
public Cursor (string cursorFile);
new System.Windows.Input.Cursor : string -> System.Windows.Input.Cursor
Public Sub New (cursorFile As String)

매개 변수

cursorFile
String

커서가 들어 있는 파일입니다.

예외

cursorFile이(가) null인 경우

cursorFile의 파일 이름이 .ani 또는 .cur이 아닌 경우

추가 정보

적용 대상

Cursor(Stream, Boolean)

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

public:
 Cursor(System::IO::Stream ^ cursorStream, bool scaleWithDpi);
public Cursor (System.IO.Stream cursorStream, bool scaleWithDpi);
new System.Windows.Input.Cursor : System.IO.Stream * bool -> System.Windows.Input.Cursor
Public Sub New (cursorStream As Stream, scaleWithDpi As Boolean)

매개 변수

cursorStream
Stream

커서가 들어 있는 Stream입니다.

scaleWithDpi
Boolean

dpi를 사용하여 크기를 조정하면 true, 그렇지 않으면 false입니다.

적용 대상

Cursor(String, Boolean)

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

public:
 Cursor(System::String ^ cursorFile, bool scaleWithDpi);
public Cursor (string cursorFile, bool scaleWithDpi);
new System.Windows.Input.Cursor : string * bool -> System.Windows.Input.Cursor
Public Sub New (cursorFile As String, scaleWithDpi As Boolean)

매개 변수

cursorFile
String

커서가 들어 있는 Stream입니다.

scaleWithDpi
Boolean

dpi를 사용하여 크기를 조정하면 true, 그렇지 않으면 false입니다.

적용 대상