Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.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
)
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