CellSpan Property

LegendCell.CellSpan Property

.NET Framework (current version)

Gets or sets the number of horizontal cells used to draw the contents of the legend cell.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public virtual int CellSpan { get; set; }

Property Value

Type: System.Int32

An integer value that represents the number of horizontal cells used to draw the legend cell contents. The default value is 1.

If the cell contents must extend beyond the cell width, you can set the CellSpan property to the number of cells required to fit the contents. This property is most often used if you wish to add an extended header or title to the legend.

When this property is set to a value larger than 1, empty legend cells must be added in order to accommodate the contents of the extended legend cell.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft