HwndSource Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy HwndSource.

Przeciążenia

HwndSource(HwndSourceParameters)

Inicjuje HwndSource nowe wystąpienie klasy przy użyciu struktury zawierającej ustawienia początkowe.

HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Inicjuje HwndSource nowe wystąpienie klasy z określonym stylem klasy, stylem, stylem rozszerzonym, pozycją x-y, nazwą i oknem nadrzędnym.

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Inicjuje HwndSource nowe wystąpienie klasy z określonym stylem klasy, stylem, stylem rozszerzonym, pozycją x-y, szerokością, wysokością, nazwą i oknem nadrzędnym.

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean)

Inicjuje nowe wystąpienie HwndSource klasy z określonym stylem klasy, stylem, stylem rozszerzonym, pozycją x-y, szerokością, wysokością, nazwą i oknem nadrzędnym oraz określając, czy okno jest automatycznie skalowane.

Uwagi

Ważne

Ta metoda nie jest dostępna w strefie zabezpieczeń w Internecie.

HwndSource(HwndSourceParameters)

Inicjuje HwndSource nowe wystąpienie klasy przy użyciu struktury zawierającej ustawienia początkowe.

public:
 HwndSource(System::Windows::Interop::HwndSourceParameters parameters);
[System.Security.SecurityCritical]
public HwndSource (System.Windows.Interop.HwndSourceParameters parameters);
public HwndSource (System.Windows.Interop.HwndSourceParameters parameters);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : System.Windows.Interop.HwndSourceParameters -> System.Windows.Interop.HwndSource
new System.Windows.Interop.HwndSource : System.Windows.Interop.HwndSourceParameters -> System.Windows.Interop.HwndSource
Public Sub New (parameters As HwndSourceParameters)

Parametry

parameters
HwndSourceParameters

Struktura zawierająca parametry wymagane do utworzenia okna.

Atrybuty

Uwagi

Ważne

Ta metoda nie jest dostępna w strefie zabezpieczeń w Internecie.

Ten podpis konstruktora może być wygodniejszy w niektórych sytuacjach, ponieważ domyślna struktura zawiera kilka odpowiednich początkowych wartości domyślnych.

Ważne

Jeśli używasz tego podpisu, nie używaj konstruktora domyślnego HwndSourceParameters do konstruowania HwndSourceParameters struktury dla parameters wartości. Należy użyć konstruktora HwndSourceParameters , który umożliwia określenie początkowej nazwy okna. Jeśli używasz konstruktora domyślnego HwndSourceParameters i utwórz element HwndSource z nim, to HwndSource nie jest wyświetlane, ponieważ początkowa nazwa okna jest wymaganiem konstrukcyjnym dla reprezentowanego HWND.

Dotyczy

HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Inicjuje HwndSource nowe wystąpienie klasy z określonym stylem klasy, stylem, stylem rozszerzonym, pozycją x-y, nazwą i oknem nadrzędnym.

public:
 HwndSource(int classStyle, int style, int exStyle, int x, int y, System::String ^ name, IntPtr parent);
[System.Security.SecurityCritical]
public HwndSource (int classStyle, int style, int exStyle, int x, int y, string name, IntPtr parent);
public HwndSource (int classStyle, int style, int exStyle, int x, int y, string name, IntPtr parent);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
new System.Windows.Interop.HwndSource : int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
Public Sub New (classStyle As Integer, style As Integer, exStyle As Integer, x As Integer, y As Integer, name As String, parent As IntPtr)

Parametry

classStyle
Int32

Style klasy Win32 dla okna.

style
Int32

Style Win32 dla okna.

exStyle
Int32

Rozszerzone style Win32 dla okna.

x
Int32

Położenie lewej krawędzi okna.

y
Int32

Położenie górnej krawędzi okna.

name
String

Nazwa okna.

parent
IntPtr

nativeint

Uchwyt okna nadrzędnego okna.

Atrybuty

Uwagi

Ważne

Ta metoda nie jest dostępna w strefie zabezpieczeń w Internecie.

Dotyczy

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Inicjuje HwndSource nowe wystąpienie klasy z określonym stylem klasy, stylem, stylem rozszerzonym, pozycją x-y, szerokością, wysokością, nazwą i oknem nadrzędnym.

public:
 HwndSource(int classStyle, int style, int exStyle, int x, int y, int width, int height, System::String ^ name, IntPtr parent);
[System.Security.SecurityCritical]
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent);
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
Public Sub New (classStyle As Integer, style As Integer, exStyle As Integer, x As Integer, y As Integer, width As Integer, height As Integer, name As String, parent As IntPtr)

Parametry

classStyle
Int32

Style klasy Win32 dla okna.

style
Int32

Style Win32 dla okna.

exStyle
Int32

Rozszerzone style Win32 dla okna.

x
Int32

Położenie lewej krawędzi okna.

y
Int32

Położenie górnej krawędzi okna.

width
Int32

Szerokość okna.

height
Int32

Wysokość okna.

name
String

Nazwa okna.

parent
IntPtr

nativeint

Uchwyt okna nadrzędnego okna.

Atrybuty

Uwagi

Ważne

Ta metoda nie jest dostępna w strefie zabezpieczeń w Internecie.

Dotyczy

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean)

Inicjuje nowe wystąpienie HwndSource klasy z określonym stylem klasy, stylem, stylem rozszerzonym, pozycją x-y, szerokością, wysokością, nazwą i oknem nadrzędnym oraz określając, czy okno jest automatycznie skalowane.

public:
 HwndSource(int classStyle, int style, int exStyle, int x, int y, int width, int height, System::String ^ name, IntPtr parent, bool adjustSizingForNonClientArea);
[System.Security.SecurityCritical]
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent, bool adjustSizingForNonClientArea);
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent, bool adjustSizingForNonClientArea);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint * bool -> System.Windows.Interop.HwndSource
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint * bool -> System.Windows.Interop.HwndSource
Public Sub New (classStyle As Integer, style As Integer, exStyle As Integer, x As Integer, y As Integer, width As Integer, height As Integer, name As String, parent As IntPtr, adjustSizingForNonClientArea As Boolean)

Parametry

classStyle
Int32

Style klasy Win32 dla okna.

style
Int32

Style Win32 dla okna.

exStyle
Int32

Rozszerzone style Win32 dla okna.

x
Int32

Położenie lewej krawędzi okna.

y
Int32

Położenie górnej krawędzi okna.

width
Int32

Szerokość okna.

height
Int32

Wysokość okna.

name
String

Nazwa okna.

parent
IntPtr

nativeint

Uchwyt okna nadrzędnego okna.

adjustSizingForNonClientArea
Boolean

true aby menedżer układów zawierał obszar inny niż klient do określania rozmiaru; w przeciwnym razie , false.

Atrybuty

Uwagi

Ważne

Ta metoda nie jest dostępna w strefie zabezpieczeń w Internecie.

Dotyczy