Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal image As RasterImage, _ ByVal page As Integer, _ ByVal text As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim image As RasterImage Dim page As Integer Dim text As String Dim instance As New RasterImageListItem(image, page, text) |
Parameters
- image
- A Leadtools.RasterImage object that specifies the image to be displayed in the item.
- page
- The page number (1-based) if the image has multiple pages.
- text
- The text to display for the item.
For an example, refer to RasterImageList.
If the image contains only one page, page must be 1.
The value of RasterImage.Page is not used to control the page number of the item to be viewed in this item. Instead, use the page parameter. This allow the same Leadtools.RasterImage object to be used in multiple items while setting the Page property to different values.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7