|
|
|
ButtonPartClass Constructor |
Initializes a new instance of the ButtonPartClass class.
Syntax ButtonPartClass Class (Softelvdm.Controls)
VB |
Public Sub New()
|
C# |
public ButtonPartClass(); |
C++ |
public: ButtonPartClass(); |
Enabled
Defines whether the button is enabled (Enabled property). A disabled button cannot be clicked and appears grayed.
ForeColor
HAlign
Defines the horizontal alignment (HAlign property) within the part's available space.
Value |
Description |
|
0 | The contents are left aligned within the available space. | |
1 | The contents are centered within the available space. | |
2 | The contents are right aligned within the available space. | |
-1 | The default value is determined by a containing object or by the environment. |
Image
Defines the button image (Image property).
Pressed
Defines whether the button is currently pressed (Pressed property).
Style
Defines the button appearance (Appearance property).
Value |
Description |
|
0 | The gadget has an appearance which is determined by a containing object or by the environment. If no containing object or environmental information is available, GadgetAppearanceEnum.Default is identical to GadgetAppearanceEnum.ThemedSystem. | |
1 | The gadget has an appearance that mimics the current operating system, but does not use themes, even if these are enabled by the operating system. | |
2 | The gadget emulates an appearance that mimics Windows XP themes, even on operating systems that do not offer themes. | |
3 | The gadget has an appearance that mimics the current operating system. For example, on Windows XP (and above), Windows themes would be used if these are enabled by the operating system. When Windows themes are used, certain color related properties no longer take effect, because the rendering is determined by the theme. | |
4 | The gadget has no particular appearance and is completely defined by its own attributes. |
Text
Defines the button's text (Text property).
TextFont
Defines the button's text font (Font property) or null/Nothing to use the default font.
Toggle
Defines whether the button is a toggle button (Toggle property). A toggle button remains pressed once it is clicked.
VAlign
Defines the vertical alignment (VAlign property) within the part's available space.
Value |
Description |
|
0 | The contents are aligned with the top of the available space. | |
1 | The contents are vertically centered within the available space. | |
2 | The contents are aligned with the bottom of the available space. | |
-1 | The default value is determined by a containing object or by the environment. |
Comments
The ButtonPartClass constructor initializes a new instance of the ButtonPartClass class.
Version Information
Supported in version 1.0.
Products Table