|
|
|
ImagePartClass Constructor |
Initializes a new instance of the ImagePartClass class.
Syntax ImagePartClass Class (Softelvdm.Controls)
VB |
Public Sub New()
|
C# |
public ImagePartClass(); |
C++ |
public: ImagePartClass(); |
ExplicitSize
Defines the explicit size of the image, which causes the image to be stretched or shrunk if needed (ExplicitSize property). Specify Size.Empty to use the image's actual size.
HAlign
Defines the horizontal alignment of the image within the part's available space (HAlign property).
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. |
HoverImage
Defines the image used when the mouse cursor is located within the part (HoverImage property). Specify null/Nothing to use the default image (Image parameter).
HoverImageIndex
Defines the index of the image used when the mouse cursor is located within the part (HoverImageIndex property). Specify -1 to use the default image (defined by the ImageList and ImageIndex parameter).
Image
Defines the image (Image property).
ImageIndex
Defines the index of the image in the ImageList control (ImageIndex property).
ImageList
Defines the ImageList control containing the image (ImageList property).
TransparentColorEnd
Defines the ending color of the range of transparent colors within the image (TransparentColorEnd property). Specify Color.Empty to omit the color range.
TransparentColorStart
Defines the starting color of the range of transparent colors within the image (TransparentColorStart property). Specify Color.Empty to omit the color range.
Defines the vertical alignment of the image within the part's available space (VAlign property).
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 ImagePartClass constructor initializes a new instance of the ImagePartClass class.
Version Information
Supported in version 1.0.
Products Table