Cursor 생성자

정의

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

오버로드

Name Description
Cursor(Stream)

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

Cursor(String)

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

Cursor(Stream, Boolean)

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

Cursor(String, Boolean)

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

Cursor(Stream)

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

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 커서를 포함하는 항목입니다.

예외

cursorStreamnull입니다.

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

설명

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

추가 정보

적용 대상

Cursor(String)

지정된 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

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

예외

cursorFilenull입니다.

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

truedpi를 사용하여 크기를 조정하는 경우 그렇지 않으면 . 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

truedpi를 사용하여 크기를 조정하는 경우 그렇지 않으면 . false

적용 대상