Creates a new instance of the LegendItem class.
Default constructor.
Overload | Description |
---|---|
LegendItem Constructor() | Default legend item constructor |
LegendItem Constructor(String,Color,String) | Constructor that takes a name, color and image path. Legend item constructor |
Use this constructor to create and initialize a new instance of the LegendItem class.
Only one of the image or color parameters needs to be specified. If both are specified than the image parameter has precedence.
Note that you can also add custom legend items using the Add and Insert methods of the CustomItems collection property of the Legend object.
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