Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
ImageListItem Constructor(BitmapSource,String)
See Also 
Leadtools.Windows.Controls Namespace > ImageListItem Class > ImageListItem Constructor : ImageListItem Constructor(BitmapSource,String)




image
An BitmapSource object that specifies the image to be displayed in the item.
text
The text to display for the item.
Initializes a new instance of the ImageListItem class with an image, and text to be displayed.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal image As BitmapSource, _
   ByVal text As String _
)
Visual Basic (Usage)Copy Code
Dim image As BitmapSource
Dim text As String
 
Dim instance As ImageListItem(image, text)
C# 
public ImageListItem( 
   BitmapSource image,
   string text
)
Managed Extensions for C++ 
public: ImageListItem( 
   BitmapSource image,
   string* text
)
C++/CLI 
public:
ImageListItem( 
   BitmapSource image,
   String^ text
)

Parameters

image
An BitmapSource object that specifies the image to be displayed in the item.
text
The text to display for the item.

Example

For C#/VB examples, refer to ImageList.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also