Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
Leadtools.Windows.Controls Namespace > ImageListItem Class : Source Property |
[CategoryAttribute("Appearance")] [DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")] public ImageSource Source {get; set;}
'Declaration <CategoryAttribute("Appearance")> <DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")> Public Property Source As ImageSource
'Usage Dim instance As ImageListItem Dim value As ImageSource instance.Source = value value = instance.Source
[CategoryAttribute("Appearance")] [DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")] public: property ImageSource^ Source { ImageSource^ get(); void set ( ImageSource^ value); }
The ImageList control will draw this image onto the item surface. If the item does not have an image, the value of this property is null (Nothing in Visual Basic) and, nothing is drawn.
You can set the Source property directly with the item image or you can set the Uri property with the path to the image and let the control load the image.