NamedImage.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the unique name of a NamedImage object.
public:
virtual property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(false)]
public override string Name { get; set; }
[<System.ComponentModel.Bindable(false)>]
member this.Name : string with get, set
Public Overrides Property Name As String
Property Value
A string
value that represents the unique name of a NamedImage object stored in the NamedImagesCollection.
- Attributes
Remarks
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.