Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ImagePartClass Constructor

Initializes a new instance of the ImagePartClass class.

Class: ImagePartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

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

Parameters

Image

Defines the image (ImagePartClass.Image property).

HoverImage

Defines the image used when the mouse cursor is located within the part (ImagePartClass.HoverImage property). Specify null/Nothing to use the default image (Image parameter).

ImageList

Defines the ImageList control containing the image (ImagePartClass.ImageList property).

ImageIndex

Defines the index of the image in the ImageList control (ImagePartClass.ImageIndex property).

HoverImageIndex

Defines the index of the image used when the mouse cursor is located within the part (ImagePartClass.HoverImageIndex property). Specify -1 to use the default image (defined by the ImageList and ImageIndex parameter).

ExplicitSize

Defines the explicit size of the image, which causes the image to be stretched or shrunk if needed (ImagePartClass.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 (GenericPartClass.HAlign property).

VAlign

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

TransparentColorStart

Defines the starting color of the range of transparent colors within the image (ImagePartClass.TransparentColorStart property). Specify Color.Empty to omit the color range.

TransparentColorEnd

Defines the ending color of the range of transparent colors within the image (ImagePartClass.TransparentColorEnd property). Specify Color.Empty to omit the color range.

Comments

Initializes a new instance of the ImagePartClass class.

See Also ImagePartClass Class | Classes | SftTree/NET 2.0