Dundas Chart for Windows Forms
NamedImagesCollection Class
Members  See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace : NamedImagesCollection Class


This represents a collection of NamedImage objects.


NamedImagesCollection class is a strongly typed collection of NamedImage objects. It is exposed as Images chart root property.

Object Model

Syntax

Visual Basic (Declaration)  
Public Class NamedImagesCollection 
Visual Basic (Usage) Copy Code
Dim instance As NamedImagesCollection
C#  
public class NamedImagesCollection 

Remarks

The NamedImagesCollection class represents a collection of NamedImage objects, which are objects that have an associated image and a name that is unique to the collection.

This collection class is exposed as the Images property of the root Chart object, and is only available at run-time.

Images (any object derived from type Image, such as Bitmap) that are created dynamically can be stored in this collection, and then assigned at a later time to any image-related chart property (i.e. Chart1.BackImage).

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 that 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.

To add NamedImage objects to this collection we recommend using the Add method definition that has Name and Image arguments.

Inheritance Hierarchy

System.Object
   Dundas.Charting.WinControl.NamedImagesCollection

Requirements

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

See Also

© 2009 All Rights Reserved.