NamedImage NamedImage NamedImage NamedImage Class

Definition

Represents named images, which are stored in the NamedImagesCollection.

public ref class NamedImage : System::Web::UI::DataVisualization::Charting::ChartNamedElement
public class NamedImage : System.Web.UI.DataVisualization.Charting.ChartNamedElement
type NamedImage = class
    inherit ChartNamedElement
Public Class NamedImage
Inherits ChartNamedElement
Inheritance

Remarks

The NamedImage class represents an image that has a unique name, and is useful when an image is dynamically created using a particular drawing routine, and then specified as the image for one of the image properties of the Chart control.

The Name property determines the unique name of a NamedImage object. The Image property determines its associated image, which can be any object derived from the .NET Framework Image class.

When one of the image properties of the Chart control is set by specifying a string value, the Images collection property 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, image resource name, or an image path.

Constructors

NamedImage() NamedImage() NamedImage() NamedImage()

Initializes a new instance of the NamedImage class.

NamedImage(String, Image) NamedImage(String, Image) NamedImage(String, Image) NamedImage(String, Image)

Initializes a new instance of the NamedImage class with the specified name of the named image and its associated image.

Properties

Image Image Image Image

Gets or sets the image of a NamedImage object.

Name Name Name Name

Gets or sets the unique name of a NamedImage object.

Tag Tag Tag Tag

Gets or sets an object associated with this chart element.

(Inherited from ChartElement)

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the ChartElement.

(Inherited from ChartElement)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases unmanaged and, optionally, managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified Object is equal to the current ChartElement.

(Inherited from ChartElement)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash function for a particular type.

(Inherited from ChartElement)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current Object.

(Inherited from ChartElement)

Applies to