コード例 #1
0
        public void ReadFromXml(XmlElement xmlElement)
        {
            string val;

            val    = xmlElement.GetAttribute("Color");
            _color = ColorConverter.DeserializeColor(val);

            val    = xmlElement.GetAttribute("Width");
            _width = Convert.ToInt32(val);

            val        = xmlElement.GetAttribute("DashStyle");
            _dashStyle = (DashStyle)DashStyle.Parse(typeof(DashStyle), val);
        }