Chart.ViewStateContent Property

.NET Framework (current version)

Gets or sets a value that determines the view state to be persisted at the client.

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

public SerializationContents ViewStateContent { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.SerializationContents

A SerializationContents enumeration value that represents the view state. The default value is Default, which signifies that the view state will consist of all chart properties.

Use this property to set the view state of the Chart control.

When you set this property, the view state is automatically saved by the Chart control, and is also loaded automatically when a postback occurs.

For greater flexibility, use the ViewStateData property for user-defined view state.

To enable state management, set the EnableViewState property to true.

.NET Framework
Available since 4.0
Return to top