NSoft.NFramework.FusionCharts.Charts.VerticalLineElement.GenerateXmlAttributes C# (CSharp) Method

GenerateXmlAttributes() public method

속성들을 Xml Attribute로 생성합니다.
public GenerateXmlAttributes ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Attribute를 쓸 Writer
return void
        public override void GenerateXmlAttributes(XmlWriter writer) {
            base.GenerateXmlAttributes(writer);

            if(Dashed.HasValue)
                writer.WriteAttributeString("dashed", Dashed.GetHashCode().ToString());
            if(Label.IsNotWhiteSpace())
                writer.WriteAttributeString("label", Label);
            if(ShowLabelBorder.HasValue)
                writer.WriteAttributeString("showLabelBorder", ShowLabelBorder.GetHashCode().ToString());

            if(LinePosition.HasValue)
                writer.WriteAttributeString("linePosition", LinePosition.ToString());
            if(LabelPosition.HasValue)
                writer.WriteAttributeString("labelPosition", LabelPosition.GetHashCode().ToString());
            if(LabelHAlign.HasValue)
                writer.WriteAttributeString("labelHAlign", LabelHAlign.GetHashCode().ToString());
            if(LabelVAlign.HasValue)
                writer.WriteAttributeString("labelVAlign", LabelVAlign.GetHashCode().ToString());
        }
    }