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

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

 

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, name, and parent window.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

[SecurityCriticalAttribute]
public HwndSource(
	int classStyle,
	int style,
	int exStyle,
	int x,
	int y,
	string name,
	IntPtr parent
)

Parameters

classStyle
Type: System.Int32

The Win32 class styles for the window.

style
Type: System.Int32

The Win32 styles for the window.

exStyle
Type: System.Int32

The extended Win32 styles for the window.

x
Type: System.Int32

The position of the window's left edge.

y
Type: System.Int32

The position of the window's upper edge.

name
Type: System.String

The name of the window.

parent
Type: System.IntPtr

The handle of the window's parent window.

System_CAPS_security Security Note

This method is not available in the Internet security zone.

UIPermission

to create instances of this class. Associated enumeration: AllWindows

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft