This class represents named images, and NamedImage objects are stored in the Images collection property.
NamedImage class stores a single Image with it's unique name.
Visual Basic (Declaration) | |
---|---|
Public Class NamedImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class NamedImage |
This class represents an image that has a unique name, and is useful when an image is dynamically created using some drawing routine and is then used as the image for one of the Chart control's image properties.
The Name property determines the unique name of a NamedImage object, while the Image property determines its associated image (can be any object derived from the .NET Image class).
When one of the Chart control's image properties is set by specifying a string value the Images collection (of type NamedImageCollection) is first checked to see if an image with this name exists. If a matching NamedImage object is found then this image is used. If a matching NamedImage object is not located then the string expression is treated as a URL, image resource name or pathname.
NamedImage objects are stored in the NamedImagesCollection class, which is exposed as the Images property of the root Chart object.
System.Object
Dundas.Charting.WinControl.NamedImage
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family