Example #1
0
        public override void InitByXml(System.Xml.Linq.XElement xml)
        {
            if (xml.Attribute("unit") != null)
            {
                string s = xml.Attribute("unit").Value;
                switch (s.ToLower())
                {
                case "pixel":
                    _unit = enumLayoutUnit.Pixel;
                    break;

                case "centimeter":
                    _unit = enumLayoutUnit.Centimeter;
                    break;
                }
            }
            if (xml.Attribute("size") != null)
            {
                _size = (SizeF)LayoutFromFile.Base64StringToObject(xml.Attribute("size").Value);
            }
            base.InitByXml(xml);
        }
Example #2
0
 public Layout(enumLayoutUnit unit)
     : base()
 {
     _unit = unit;
 }
Example #3
0
 public Layout()
     : base()
 {
     _unit = enumLayoutUnit.Pixel;
 }