ChartSerializer.Format 属性

定义

获取或设置序列化图表时所使用的格式。Gets or sets the format used when the chart is serialized.

public:
 property System::Windows::Forms::DataVisualization::Charting::SerializationFormat Format { System::Windows::Forms::DataVisualization::Charting::SerializationFormat get(); void set(System::Windows::Forms::DataVisualization::Charting::SerializationFormat value); };
public System.Windows.Forms.DataVisualization.Charting.SerializationFormat Format { get; set; }
member this.Format : System.Windows.Forms.DataVisualization.Charting.SerializationFormat with get, set
Public Property Format As SerializationFormat

属性值

SerializationFormat

一个 SerializationFormat 枚举值,该值表示已序列化的数据的格式。A SerializationFormat enumeration value that represents the format of the serialized data. 默认值为 XML。The default value is XML.

注解

数据可以采用 XML 格式或二进制格式序列化。Data can be serialized in either an XML or binary format. 二进制格式是紧凑的,使用的存储比 XML 少。Binary format is compact, and takes less storage than XML. 不过,XML 是一个文本格式,它是用户可读的。XML, however, is a text format that is human-readable.

保存或加载序列化数据时,格式必须是 XML。When you save or load serialized data, the format must be XML.

适用于