Cursor Konstruktory

Definice

Inicializuje novou instanci Cursor třídy.

Přetížení

Name Description
Cursor(Stream)

Inicializuje novou instanci Cursor třídy ze zadaného Stream.

Cursor(String)

Inicializuje novou instanci Cursor třídy ze zadaného .ani nebo .cur souboru.

Cursor(Stream, Boolean)

Inicializuje novou instanci Cursor třídy.

Cursor(String, Boolean)

Inicializuje novou instanci Cursor třídy.

Cursor(Stream)

Inicializuje novou instanci Cursor třídy ze zadaného 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)

Parametry

cursorStream
Stream

Ten Stream obsahuje kurzor.

Výjimky

cursorStream je null.

Tento konstruktor nemohl vytvořit dočasný soubor.

Poznámky

Pro Stream WPF (Windows Presentation Foundation) zapíše data do dočasného souboru a pak ze souboru načte Cursor. Pokud tento konstruktor nemůže vytvořit dočasný soubor, IOException může dojít k vyvolání. Například může být vyvolán, IOException pokud není k dispozici jedinečný dočasný soubor. Pokud chcete tuto chybu vyřešit, zkuste odstranit nepotřebné dočasné soubory.

Viz také

Platí pro

Cursor(String)

Inicializuje novou instanci Cursor třídy ze zadaného .ani nebo .cur souboru.

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)

Parametry

cursorFile
String

Soubor, který obsahuje kurzor.

Výjimky

cursorFile je null.

cursorFile není název souboru .ani ani .cur .

Viz také

Platí pro

Cursor(Stream, Boolean)

Inicializuje novou instanci Cursor třídy.

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)

Parametry

cursorStream
Stream

Ten Stream obsahuje kurzor.

scaleWithDpi
Boolean

truepokud se má škálovat s dpi; v opačném případě . false

Platí pro

Cursor(String, Boolean)

Inicializuje novou instanci Cursor třídy.

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)

Parametry

cursorFile
String

Ten Stream obsahuje kurzor.

scaleWithDpi
Boolean

truepokud se má škálovat s dpi; v opačném případě . false

Platí pro