Uredi

Deli z drugimi prek


Chart.ViewStateContent Property

Definition

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

public:
 property System::Web::UI::DataVisualization::Charting::SerializationContents ViewStateContent { System::Web::UI::DataVisualization::Charting::SerializationContents get(); void set(System::Web::UI::DataVisualization::Charting::SerializationContents value); };
[System.ComponentModel.Bindable(true)]
public System.Web.UI.DataVisualization.Charting.SerializationContents ViewStateContent { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.ViewStateContent : System.Web.UI.DataVisualization.Charting.SerializationContents with get, set
Public Property ViewStateContent As SerializationContents

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