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); }
public Layout(enumLayoutUnit unit) : base() { _unit = unit; }
public Layout() : base() { _unit = enumLayoutUnit.Pixel; }