HwndSource Konstruktorer

Definition

Initierar en ny instans av HwndSource klassen.

Överlagringar

Name Description
HwndSource(HwndSourceParameters)

Initierar en ny instans av HwndSource klassen med hjälp av en struktur som innehåller de inledande inställningarna.

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

Initierar en ny instans av HwndSource klassen med ett angivet klassformat, format, utökat format, x-y-position, namn och överordnat fönster.

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

Initierar en ny instans av HwndSource klassen med ett angivet klassformat, format, utökat format, x-y-position, bredd, höjd, namn och överordnat fönster.

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

Initierar en ny instans av HwndSource klassen med ett angivet klassformat, formatmall, utökat format, x-y-position, bredd, höjd, namn och överordnat fönster och genom att ange om fönstret är automatiskt.

Kommentarer

Important

Den här metoden är inte tillgänglig i Internetsäkerhetszonen.

HwndSource(HwndSourceParameters)

Initierar en ny instans av HwndSource klassen med hjälp av en struktur som innehåller de inledande inställningarna.

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)

Parametrar

parameters
HwndSourceParameters

En struktur som innehåller de parametrar som krävs för att skapa fönstret.

Attribut

Kommentarer

Important

Den här metoden är inte tillgänglig i Internetsäkerhetszonen.

Den här konstruktorsignaturen kan vara bekvämare i vissa situationer, eftersom standardstrukturen innehåller några lämpliga initiala standardvärden.

Important

Om du använder den här signaturen ska du inte använda standardkonstruktorn HwndSourceParameters för att konstruera HwndSourceParameters strukturen för parameters värdet. Du måste använda HwndSourceParameters konstruktorn som gör att du kan ange ett första fönsternamn. Om du använder standardkonstruktorn HwndSourceParameters och skapar en HwndSource med den visas HwndSource den inte eftersom ett första fönsternamn är ett byggkrav för den representerade HWND:en.

Gäller för

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

Initierar en ny instans av HwndSource klassen med ett angivet klassformat, format, utökat format, x-y-position, namn och överordnat fönster.

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)

Parametrar

classStyle
Int32

Win32-klassformaten för fönstret.

style
Int32

Win32-formatmallarna för fönstret.

exStyle
Int32

De utökade Win32-formaten för fönstret.

x
Int32

Positionen för fönstrets vänstra kant.

y
Int32

Positionen för fönstrets övre kant.

name
String

Namnet på fönstret.

parent
IntPtr

nativeint

Handtaget för fönstrets överordnade fönster.

Attribut

Kommentarer

Important

Den här metoden är inte tillgänglig i Internetsäkerhetszonen.

Gäller för

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

Initierar en ny instans av HwndSource klassen med ett angivet klassformat, format, utökat format, x-y-position, bredd, höjd, namn och överordnat fönster.

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)

Parametrar

classStyle
Int32

Win32-klassformaten för fönstret.

style
Int32

Win32-formatmallarna för fönstret.

exStyle
Int32

De utökade Win32-formaten för fönstret.

x
Int32

Positionen för fönstrets vänstra kant.

y
Int32

Positionen för fönstrets övre kant.

width
Int32

Fönstrets bredd.

height
Int32

Fönstrets höjd.

name
String

Namnet på fönstret.

parent
IntPtr

nativeint

Handtaget för fönstrets överordnade fönster.

Attribut

Kommentarer

Important

Den här metoden är inte tillgänglig i Internetsäkerhetszonen.

Gäller för

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

Initierar en ny instans av HwndSource klassen med ett angivet klassformat, formatmall, utökat format, x-y-position, bredd, höjd, namn och överordnat fönster och genom att ange om fönstret är automatiskt.

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)

Parametrar

classStyle
Int32

Win32-klassformaten för fönstret.

style
Int32

Win32-formatmallarna för fönstret.

exStyle
Int32

De utökade Win32-formaten för fönstret.

x
Int32

Positionen för fönstrets vänstra kant.

y
Int32

Positionen för fönstrets övre kant.

width
Int32

Fönstrets bredd.

height
Int32

Fönstrets höjd.

name
String

Namnet på fönstret.

parent
IntPtr

nativeint

Handtaget för fönstrets överordnade fönster.

adjustSizingForNonClientArea
Boolean

trueför att layouthanteraren ska innehålla området som inte är klient för storleksändring. annars . false

Attribut

Kommentarer

Important

Den här metoden är inte tillgänglig i Internetsäkerhetszonen.

Gäller för