Cursor 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Cursor 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| Cursor(Stream) | |
| Cursor(String) |
지정된 Cursor파일에서 클래스의 새 인스턴스를 초기화합니다. |
| Cursor(Stream, Boolean) |
Cursor 클래스의 새 인스턴스를 초기화합니다. |
| Cursor(String, Boolean) |
Cursor 클래스의 새 인스턴스를 초기화합니다. |
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은 null입니다.
이 생성자가 임시 파일을 만들 수 없습니다.
설명
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
커서가 들어 있는 파일입니다.
예외
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)
매개 변수
- 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)
매개 변수
- scaleWithDpi
- Boolean
truedpi를 사용하여 크기를 조정하는 경우 그렇지 않으면 . false