Dundas Chart for Windows Forms
Name Property
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > LegendCell Class : Name Property


Gets or sets the name of the legend cell.
Legend cell name.

Syntax

Visual Basic (Declaration)  
Public Overridable Property Name As String
Visual Basic (Usage) Copy Code
Dim instance As LegendCell
Dim value As String
 
instance.Name = value
 
value = instance.Name
C#  
public virtual string Name {get; set;}

Return Value

A string value that represents the text name of the legend cell.

Example

We use this property to access custom legend items in the collection.
C# Copy Code
chart1.Legends["Default"].CustomItems[0].Cells["Cell1"].Text = "Hello World";

Remarks

The name of the legend cell. Must be unique, otherwise an exception will be thrown.

This property can be used as the indexer when retrieving a LegendCell object from the LegendCellCollection.

Setting this property to a zero-length string will result in an exception being thrown.

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.