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

            if (PaletteColors.IsNotWhiteSpace())
            {
                writer.WriteAttributeString("paletteColors", PaletteColors);
            }
            if (ShowPlotBorder.HasValue)
            {
                writer.WriteAttributeString("showPlotBorder", ShowPlotBorder.GetHashCode().ToString());
            }
            if (PlotBorderColor.HasValue)
            {
                writer.WriteAttributeString("plotBorderColor", PlotBorderColor.Value.ToHexString());
            }
            if (PlotBorderThickness.HasValue)
            {
                writer.WriteAttributeString("plotBorderThickness", PlotBorderThickness.ToString());
            }
            if (PlotBorderAlpha.HasValue)
            {
                writer.WriteAttributeString("plotBorderAlpha", PlotBorderAlpha.ToString());
            }
            if (PlotFillAlpha.HasValue)
            {
                writer.WriteAttributeString("plotFillAlpha", PlotFillAlpha.ToString());
            }
            if (PlotFillColor.HasValue)
            {
                writer.WriteAttributeString("plotFillColor", PlotFillColor.Value.ToHexString());
            }
            if (PieRadius.HasValue)
            {
                writer.WriteAttributeString("pieRadius", PieRadius.ToString());
            }

            if (PieFillAlpha.HasValue)
            {
                writer.WriteAttributeString("PieFillAlpha", PieFillAlpha.ToString());
            }
            if (PieBorderThickness.HasValue)
            {
                writer.WriteAttributeString("PieBorderThickness", PieBorderThickness.ToString());
            }
            if (HoverFillColor.HasValue)
            {
                writer.WriteAttributeString("HoverFillColor", HoverFillColor.Value.ToHexString());
            }
            if (PieBorderColor.HasValue)
            {
                writer.WriteAttributeString("PieBorderColor", PieBorderColor.Value.ToHexString());
            }
            if (UseHoverColor.HasValue)
            {
                writer.WriteAttributeString("useHoverColor", UseHoverColor.GetHashCode().ToString());
            }
        }
Example #2
0
        public override void GenerateXmlAttributes(System.Xml.XmlWriter writer)
        {
            base.GenerateXmlAttributes(writer);

            if (ShowPlotBorder.HasValue)
            {
                writer.WriteAttributeString("showPlotBorder", ShowPlotBorder.GetHashCode().ToString());
            }
            if (PlotBorderColor.HasValue)
            {
                writer.WriteAttributeString("plotBorderColor", PlotBorderColor.Value.ToHexString());
            }
            if (PlotBorderThickness.HasValue)
            {
                writer.WriteAttributeString("plotBorderThickness", PlotBorderThickness.ToString());
            }
            if (PlotBorderAlpha.HasValue)
            {
                writer.WriteAttributeString("plotBorderAlpha", PlotBorderAlpha.ToString());
            }
        }