Beispiel #1
0
        /// <summary>
        /// <see cref="ChartElementBase"/> 형식의 Element 객체들을 XML Element Node로 생성합니다.
        /// </summary>
        /// <param name="writer">Element를 쓸 Writer</param>
        protected override void GenerateXmlElements(System.Xml.XmlWriter writer)
        {
            base.GenerateXmlElements(writer);

            if (Value.HasValue)
            {
                ChartUtil.WriteElementText(writer, "value", Value.ToString());
            }
        }
Beispiel #2
0
        /// <summary>
        /// <see cref="ChartElementBase"/> 형식의 Element 객체들을 XML Element Node로 생성합니다.
        /// </summary>
        /// <param name="writer">Element를 쓸 Writer</param>
        protected override void GenerateXmlElements(XmlWriter writer)
        {
            base.GenerateXmlElements(writer);

            if (Value.HasValue)
            {
                ChartUtil.WriteElementText(writer, "value", Value.ToString());
            }
            if (Target.HasValue)
            {
                ChartUtil.WriteElementText(writer, "target", Target.ToString());
            }
        }