Encapsulates the information needed when creating a control.
Public Constructors | |
create_params () | |
Initializes a new instance of the create_params class. | |
Public Properties | |
const xtd::string & | caption () const noexcept |
Gets the control's initial text. | |
create_params & | caption (const xtd::string &caption) |
Gets the control's initial text. | |
const xtd::string & | class_name () const noexcept |
Gets the name of the Windows class to derive the control from. | |
create_params & | class_name (const xtd::string &class_name) |
Sets the name of the Windows class to derive the control from. | |
size_t | class_style () const noexcept |
Gets a bitwise combination of class style values. | |
create_params & | class_style (size_t class_style) |
Gets a bitwise combination of class style values. | |
size_t | ex_style () const noexcept |
Gets a bitwise combination of extended window style values. | |
create_params & | ex_style (size_t ex_style) |
Sets a bitwise combination of extended window style values. | |
int32 | height () const noexcept |
Gets the initial height of the control. | |
create_params & | height (int32 height) |
Sets the initial height of the control. | |
drawing::point | location () const noexcept |
Gets the initial location of the control. | |
create_params & | location (const drawing::point location) |
Sets the initial location of the control. | |
intptr | param () const noexcept |
Gets additional parameter information needed to create the control. | |
create_params & | param (intptr param) |
Sets additional parameter information needed to create the control. | |
intptr | parent () const noexcept |
Gets or sets the control's parent. | |
create_params & | parent (intptr parent) |
Sets or sets the control's parent. | |
size_t | style () const noexcept |
Gets a bitwise combination of window style values. | |
create_params & | style (size_t style) |
Sets a bitwise combination of window style values. | |
drawing::size | size () const noexcept |
Gets the initial size of the control. | |
create_params & | size (const drawing::size size) |
Sets the initial size of the control. | |
int32 | width () const noexcept |
Gets the initial width of the control. | |
create_params & | width (int32 width) |
Sets the initial width of the control. | |
int32 | x () const noexcept |
Gets the initial left position of the control. | |
create_params & | x (int32 x) |
Sets the initial left position of the control. | |
int32 | y () const noexcept |
Gets the initial top position of the control. | |
create_params & | y (int32 y) |
Sets the initial top position of the control. | |
Public Methods | |
xtd::string | to_string () const noexcept override |
Returns a string that represents the current object. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
xtd::uptr< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
Static Public Member Functions inherited from xtd::object | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
template<typename object_a_t , typename object_b_t > | |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
xtd::forms::create_params::create_params | ( | ) |
Initializes a new instance of the create_params class.
|
noexcept |
Gets the control's initial text.
create_params & xtd::forms::create_params::caption | ( | const xtd::string & | caption | ) |
Gets the control's initial text.
caption | The control's initial text. |
|
noexcept |
Gets the name of the Windows class to derive the control from.
create_params & xtd::forms::create_params::class_name | ( | const xtd::string & | class_name | ) |
Sets the name of the Windows class to derive the control from.
class_name | The name of the Windows class to derive the control from. |
|
noexcept |
Gets a bitwise combination of class style values.
create_params & xtd::forms::create_params::class_style | ( | size_t | class_style | ) |
Gets a bitwise combination of class style values.
class_style | A bitwise combination of the class style values. |
|
noexcept |
Gets a bitwise combination of extended window style values.
create_params & xtd::forms::create_params::ex_style | ( | size_t | ex_style | ) |
Sets a bitwise combination of extended window style values.
ex_style | A bitwise combination of the extended window style values. |
|
noexcept |
Gets the initial height of the control.
create_params & xtd::forms::create_params::height | ( | int32 | height | ) |
Sets the initial height of the control.
height | The numeric value that represents the initial height of the control. |
|
noexcept |
Gets the initial location of the control.
create_params & xtd::forms::create_params::location | ( | const drawing::point | location | ) |
Sets the initial location of the control.
location | The xtd::drawing::point that represents the initial location of the control. |
|
noexcept |
Gets additional parameter information needed to create the control.
create_params & xtd::forms::create_params::param | ( | intptr | param | ) |
Sets additional parameter information needed to create the control.
param | An intptr that holds additional parameter information needed to create the control. |
|
noexcept |
Gets or sets the control's parent.
create_params & xtd::forms::create_params::parent | ( | intptr | parent | ) |
Sets or sets the control's parent.
parent | An intptr that contains the window handle of the control's parent. |
|
noexcept |
Gets a bitwise combination of window style values.
create_params & xtd::forms::create_params::style | ( | size_t | style | ) |
Sets a bitwise combination of window style values.
style | A bitwise combination of the window style values. |
|
noexcept |
Gets the initial size of the control.
create_params & xtd::forms::create_params::size | ( | const drawing::size | size | ) |
Sets the initial size of the control.
location | The xtd::drawing::size that represents the initial size of the control. |
|
noexcept |
Gets the initial width of the control.
create_params & xtd::forms::create_params::width | ( | int32 | width | ) |
Sets the initial width of the control.
height | The numeric value that represents the initial width of the control. |
|
noexcept |
Gets the initial left position of the control.
create_params & xtd::forms::create_params::x | ( | int32 | x | ) |
Sets the initial left position of the control.
x | The numeric value that represents the initial left position of the control. |
|
noexcept |
Gets the initial top position of the control.
create_params & xtd::forms::create_params::y | ( | int32 | y | ) |
Sets the initial top position of the control.
x | The numeric value that represents the initial top position of the control. |
|
overridevirtualnoexcept |
Returns a string that represents the current object.
Reimplemented from xtd::object.