Chart.ViewStateContent Property

Definition

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

C#
[System.ComponentModel.Bindable(true)]
public System.Web.UI.DataVisualization.Charting.SerializationContents ViewStateContent { get; set; }

Property Value

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.

Attributes

Remarks

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.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1