Dundas Chart for Windows Forms
DeleteAttribute Method
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataPointAttributes Class : DeleteAttribute Method


name

The name of the data attribute to be deleted.


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

The name of the data attribute to be deleted.


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

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

// 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

© 2009 All Rights Reserved.