Softelvdm.Controls Class Library for Windows Controls 1.0

ImagePartClass Constructor

Softel vdm, Inc.

Initializes a new instance of the ImagePartClass class.

Syntax      ImagePartClass Class (Softelvdm.Controls)

VB   

Public Sub New()
Public Sub New( ByVal Image As Image )
Public Sub New( _
     ByVal Image As Image, _
     ByVal HoverImage As Image )
Public Sub New( _
     ByVal ImageList As ImageList, _
     ByVal ImageIndex As Integer, _
     ByVal HoverImageIndex As Integer, _
     ByVal ExplicitSize As Size, _
     ByVal HAlign As HAlignmentOptionalEnum, _
     ByVal VAlign As VAlignmentOptionalEnum )
Public Sub New( _
     ByVal Image As Image, _
     ByVal HoverImage As Image, _
     ByVal ExplicitSize As Size, _
     ByVal HAlign As HAlignmentOptionalEnum, _
     ByVal VAlign As VAlignmentOptionalEnum, _
     ByVal TransparentColorStart As Color, _
     ByVal TransparentColorEnd As Color )

C#   

public ImagePartClass();
public ImagePartClass( Image Image );
public ImagePartClass(
     Image Image,
     Image HoverImage );
public ImagePartClass(
     ImageList ImageList,
     int ImageIndex,
     int HoverImageIndex,
     Size ExplicitSize,
     HAlignmentOptionalEnum HAlign,
     VAlignmentOptionalEnum VAlign );
public ImagePartClass(
     Image Image,
     Image HoverImage,
     Size ExplicitSize,
     HAlignmentOptionalEnum HAlign,
     VAlignmentOptionalEnum VAlign,
     Color TransparentColorStart,
     Color TransparentColorEnd );

C++   

public: ImagePartClass();
public: ImagePartClass( Image^ Image );
public: ImagePartClass(
     Image^ Image,
     Image^ HoverImage );
public: ImagePartClass(
     ImageList^ ImageList,
     int ImageIndex,
     int HoverImageIndex,
     Size ExplicitSize,
     HAlignmentOptionalEnum HAlign,
     VAlignmentOptionalEnum VAlign );
public: ImagePartClass(
     Image^ Image,
     Image^ HoverImage,
     Size ExplicitSize,
     HAlignmentOptionalEnum HAlign,
     VAlignmentOptionalEnum VAlign,
     Color TransparentColorStart,
     Color TransparentColorEnd );

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).

HAlignmentOptionalEnum

Value

Description

Left

0

The contents are left aligned within the available space.

Center

1

The contents are centered within the available space.

Right

2

The contents are right aligned within the available space.

Default

-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.

VAlign

Defines the vertical alignment of the image within the part's available space (VAlign property).

VAlignmentOptionalEnum

Value

Description

Top

0

The contents are aligned with the top of the available space.

Center

1

The contents are vertically centered within the available space.

Bottom

2

The contents are aligned with the bottom of the available space.

Default

-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


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com