using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace QC.CTDS.DM.DataStructures.FormatDescriptorStructure;

[Serializable]
public class ExcelProperties : BindableObject
{
	private uint _chartRowHeight = 25u;

	private uint _chartColumnWidth = 10u;

	private bool enableLegendShadow = true;

	[XmlAttribute(AttributeName = "ChartHeight")]
	[DefaultValue(25)]
	public uint ChartHeight
	{
		get
		{
			return _chartRowHeight;
		}
		set
		{
			if (_chartRowHeight != value)
			{
				_chartRowHeight = value;
				base.OnPropertyChanged("ChartHeight");
			}
		}
	}

	[XmlAttribute(AttributeName = "ChartWidth")]
	[DefaultValue(10)]
	public uint ChartWidth
	{
		get
		{
			return _chartColumnWidth;
		}
		set
		{
			if (_chartColumnWidth != value)
			{
				_chartColumnWidth = value;
				base.OnPropertyChanged("ChartWidth");
			}
		}
	}

	[DefaultValue(true)]
	[XmlAttribute(AttributeName = "EnableLegendShadow")]
	public bool EnableLegendShadow
	{
		get
		{
			return enableLegendShadow;
		}
		set
		{
			if (enableLegendShadow != value)
			{
				enableLegendShadow = value;
				base.OnPropertyChanged("EnableLegendShadow");
			}
		}
	}
}
