コード例 #1
0
        /// <summary>
        /// 속성들을 Xml Attribute로 생성합니다.
        /// </summary>
        /// <param name="writer">Attribute를 쓸 Writer</param>
        public override void GenerateXmlAttributes(System.Xml.XmlWriter writer)
        {
            base.GenerateXmlAttributes(writer);

            if (PeriodLength.HasValue)
            {
                writer.WriteAttributeString("PeriodLength", PeriodLength.ToString());
            }
            if (PeriodColor.HasValue)
            {
                writer.WriteAttributeString("PeriodColor", PeriodColor.Value.ToHexString());
            }
            if (PeriodAlpha.HasValue)
            {
                writer.WriteAttributeString("PeriodAlpha", PeriodAlpha.ToString());
            }
        }
コード例 #2
0
        /// <summary>
        /// 속성들을 Xml Attribute로 생성합니다.
        /// </summary>
        /// <param name="writer">Attribute를 쓸 Writer</param>
        public override void GenerateXmlAttributes(System.Xml.XmlWriter writer)
        {
            base.GenerateXmlAttributes(writer);

            if (SetAdaptiveYMin.HasValue)
            {
                writer.WriteAttributeString("SetAdaptiveYMin", SetAdaptiveYMin.GetHashCode().ToString());
            }
            if (YAxisMinValue.HasValue)
            {
                writer.WriteAttributeString("YAxisMinValue", YAxisMinValue.ToString());
            }
            if (YAxisMaxValue.HasValue)
            {
                writer.WriteAttributeString("YAxisMaxValue", YAxisMaxValue.ToString());
            }

            if (_lineAttr != null)
            {
                _lineAttr.GenerateXmlAttributes(writer);
            }
            if (AnchorSides.HasValue)
            {
                writer.WriteAttributeString("AnchorSides", AnchorSides.ToString());
            }
            if (AnchorRadius.HasValue)
            {
                writer.WriteAttributeString("AnchorRadius", AnchorRadius.ToString());
            }
            if (AnchorColor.HasValue)
            {
                writer.WriteAttributeString("AnchorColor", AnchorColor.Value.ToHexString());
            }
            if (AnchorAlpha.HasValue)
            {
                writer.WriteAttributeString("AnchorAlpha", AnchorAlpha.ToString());
            }

            if (OpenColor.HasValue)
            {
                writer.WriteAttributeString("OpenColor", OpenColor.Value.ToHexString());
            }
            if (CloseColor.HasValue)
            {
                writer.WriteAttributeString("CloseColor", CloseColor.Value.ToHexString());
            }
            if (HighColor.HasValue)
            {
                writer.WriteAttributeString("HighColor", HighColor.Value.ToHexString());
            }
            if (LowColor.HasValue)
            {
                writer.WriteAttributeString("LowColor", LowColor.Value.ToHexString());
            }

            if (ShowOpenAnchor.HasValue)
            {
                writer.WriteAttributeString("ShowOpenAnchor", ShowOpenAnchor.GetHashCode().ToString());
            }
            if (ShowCloseAnchor.HasValue)
            {
                writer.WriteAttributeString("ShowCloseAnchor", ShowCloseAnchor.GetHashCode().ToString());
            }
            if (ShowHighAnchor.HasValue)
            {
                writer.WriteAttributeString("ShowHighAnchor", ShowHighAnchor.GetHashCode().ToString());
            }
            if (ShowLowAnchor.HasValue)
            {
                writer.WriteAttributeString("ShowLowAnchor", ShowLowAnchor.GetHashCode().ToString());
            }

            if (ShowOpenValue.HasValue)
            {
                writer.WriteAttributeString("ShowOpenValue", ShowOpenValue.GetHashCode().ToString());
            }
            if (ShowCloseValue.HasValue)
            {
                writer.WriteAttributeString("ShowCloseValue", ShowCloseValue.GetHashCode().ToString());
            }
            if (ShowHighLowValue.HasValue)
            {
                writer.WriteAttributeString("ShowHighLowValue", ShowHighLowValue.GetHashCode().ToString());
            }

            if (PeriodLength.HasValue)
            {
                writer.WriteAttributeString("PeriodLength", PeriodLength.ToString());
            }
            if (PeriodColor.HasValue)
            {
                writer.WriteAttributeString("PeriodColor", PeriodColor.Value.ToHexString());
            }
            if (PeriodAlpha.HasValue)
            {
                writer.WriteAttributeString("PeriodAlpha", PeriodAlpha.ToString());
            }
        }