/// <summary> /// 속성들을 Xml Attribute로 생성합니다. /// </summary> /// <param name="writer">Attribute를 쓸 Writer</param> public override void GenerateXmlAttributes(System.Xml.XmlWriter writer) { base.GenerateXmlAttributes(writer); if (SeriesName.IsNotWhiteSpace()) { writer.WriteAttributeString("seriesName", SeriesName); } if (Color.HasValue) { writer.WriteAttributeString("color", Color.Value.ToHexString()); } if (Alpha.IsNotWhiteSpace()) { writer.WriteAttributeString("alpha", Alpha); } if (Ratio.IsNotWhiteSpace()) { writer.WriteAttributeString("ratio", Ratio); } if (ShowValues.HasValue) { writer.WriteAttributeString("showValues", ShowValues.GetHashCode().ToString()); } if (Dashed.HasValue) { writer.WriteAttributeString("dashed", Dashed.GetHashCode().ToString()); } if (IncludeInLegend.HasValue) { writer.WriteAttributeString("includeInLegend", IncludeInLegend.GetHashCode().ToString()); } if (RenderAs.HasValue) { writer.WriteAttributeString("renderAs", RenderAs.ToString()); } if (ParentYAxis.HasValue) { writer.WriteAttributeString("parentYAxis", ParentYAxis.ToString()); } if (_anchorAttr != null) { _anchorAttr.GenerateXmlAttributes(writer); } if (_lineAttr != null) { _lineAttr.GenerateXmlAttributes(writer); } }
/// <summary> /// 속성들을 Xml Attribute로 생성합니다. /// </summary> /// <param name="writer">Attribute를 쓸 Writer</param> public override void GenerateXmlAttributes(System.Xml.XmlWriter writer) { base.GenerateXmlAttributes(writer); if (Name.IsNotWhiteSpace()) { writer.WriteAttributeString("name", Name); } if (IncludeInLegend.HasValue) { writer.WriteAttributeString("IncludeInLegend", IncludeInLegend.GetHashCode().ToString()); } if (_lineAttr != null) { _lineAttr.GenerateXmlAttributes(writer); } }