This documentation is archived and is not being maintained.

NamedImage.Name Property

Gets or sets the unique name of a NamedImage object.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public override string Name { get; set; }

Property Value

Type: System.String
A string value that represents the unique name of a NamedImage object stored in the NamedImagesCollection.

The property identifies a NamedImage object that is stored in the NamedImagesCollection. This name must be unique, or an exception will be thrown when the object is added to the collection.

Use NamedImage objects for dynamically created images, which can then be assigned to a chart image property.

This Name property value is used when you set a chart image property to a NamedImage object.

When one of the image properties of the Chart control is set by specifying a string value, the Images collection property—of type NamedImagesCollection—is first checked to determine whether an image with the specified name exists. If a matching NamedImage object is found, this image is used. If a matching NamedImage object is not located, the string value is treated as a URL, an image resource name, or an image path.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.