Dundas Chart for ASP.NET
DeleteAttribute Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > DataPointAttributes Class : DeleteAttribute Method


name
Name of the atribute to delete.

Deletes a custom attribute.


Delete Data Point attribute with specified name.

Syntax

Visual Basic (Declaration)  
Public Overridable Sub DeleteAttribute( _
   ByVal name As String _
) 
Visual Basic (Usage) Copy Code
Dim instance As DataPointAttributes
Dim name As String
 
instance.DeleteAttribute(name)
C#  
public virtual void DeleteAttribute( 
   string name
)

Parameters

name
Name of the atribute to delete.

Example

The following sample deletes the Exploded attribute that was set for a data point.

Visual Basic Copy Code
Imports Dundas.Charting.WebControl
...

'delete data point attribute of first pie slice
Chart1.Series("Series1").Points(0).DeleteAttribute "Exploded"
C# Copy Code
using Dundas.Charting.WebControl;
...   

// delete data point attribute of first pie slice
Chart1.Series["Series1"].Points[0].DeleteAttribute("Exploded");

Remarks

All data may have custom attributes that determine how data is displayed (e.g. exploding a pie chart). DataPoint objects may use these attributes, as do the Series objects that the data points belong to.

To delete a data attribute call this method, and specify the name of the attribute to delete. For a listing of custom attributes (on a per chart type basis) see the Custom Attributes topic.

Remember that a DataPoint object's attributes have precedence over its associated Series' attributes. For a detailed explanation on how data is displayed please see the Appearance of Data topic.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.