xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::create_params Struct Reference

Definition

Encapsulates the information needed when creating a control.

Namespace
xtd::forms::native
Library
xtd.forms.native
Remarks
The information in a create_params can be used to pass information about the initial state and appearance of a control. Most control derived controls override the create_params property to pass in the appropriate values or include additional information in the create_params.
Note
The constants used to set the style, ex_style, and class_style properties are defined in the xtd.forms.native library as constants.
Warning
Internal use only

Public Properties

xtd::string caption
 Gets or sets the control's initial text.
 
xtd::string class_name
 Gets or sets the name of the Windows class to derive the control from.
 
size_t class_style
 Gets or sets a bitwise combination of class style values.
 
size_t ex_style
 Gets or sets a bitwise combination of extended window style values.
 
drawing::point location
 Gets or sets the initial location of the control.
 
intptr param
 Gets or sets additional parameter information needed to create the control.
 
intptr parent
 Gets or sets the control's parent.
 
size_t style
 Gets or sets a bitwise combination of window style values.
 
drawing::size size
 Gets or sets the initial size of the control.
 

Member Data Documentation

◆ caption

xtd::string xtd::forms::native::create_params::caption

Gets or sets the control's initial text.

Returns
The control's initial text.
Warning
Internal use only

◆ class_name

xtd::string xtd::forms::native::create_params::class_name

Gets or sets the name of the Windows class to derive the control from.

Returns
The name of the Windows class to derive the control from.
Remarks
The default value for this property is empty (""), indicating that the control is not derived from an existing control class. To derive from an existing control class, store the system class name in this property. For example, to derive from the standard Button control, set this property to "button".
Warning
Internal use only

◆ class_style

size_t xtd::forms::native::create_params::class_style

Gets or sets a bitwise combination of class style values.

Returns
A bitwise combination of the class style values.
Remarks
see class_styles.h file
Warning
Internal use only

◆ ex_style

size_t xtd::forms::native::create_params::ex_style

Gets or sets a bitwise combination of extended window style values.

Returns
A bitwise combination of the extended window style values.
Remarks
The ex_style property supports extended appearance and initial state values to apply to the control.
see window_styles.h file
Warning
Internal use only

◆ location

drawing::point xtd::forms::native::create_params::location

Gets or sets the initial location of the control.

Returns
The xtd::drawing::point that represents the initial location of the control.
Warning
Internal use only

◆ param

intptr xtd::forms::native::create_params::param

Gets or sets additional parameter information needed to create the control.

Returns
An intptr that holds additional parameter information needed to create the control.
Warning
Internal use only

◆ parent

intptr xtd::forms::native::create_params::parent

Gets or sets the control's parent.

Returns
An intptr that contains the window handle of the control's parent.
Warning
Internal use only

◆ style

size_t xtd::forms::native::create_params::style

Gets or sets a bitwise combination of window style values.

Returns
A bitwise combination of the window style values.
Remarks
The Style property controls the appearance of the control and its initial state.
Warning
Internal use only

◆ size

drawing::size xtd::forms::native::create_params::size

Gets or sets the initial size of the control.

Returns
The xtd::drawing::size that represents the initial size of the control.
Warning
Internal use only

The documentation for this struct was generated from the following file: