private void ReadWrokSheetDrawings_Common_Position(ExcelDrawing drTarget, XElement xnode) { XElement childNode = xnode.Element(XName.Get("from", ExcelCommon.Schema_SheetDrawings)); if (childNode != null) { drTarget._From = new DrawingPosition(); ReadWrokSheetDrawings_Position(drTarget._From, childNode); } childNode = xnode.Element(XName.Get("to", ExcelCommon.Schema_SheetDrawings)); if (childNode != null) { drTarget._To = new DrawingPosition(); ReadWrokSheetDrawings_Position(drTarget._To, childNode); } }
private void ReadWrokSheetDrawings_clientData(ExcelDrawing target, XElement xnode) { XElement childNode = xnode.Element(XName.Get("clientData", ExcelCommon.Schema_SheetDrawings)); if (childNode != null) { XAttribute xt = childNode.Attribute(XName.Get("fLocksWithSheet")); if (xt != null) target.Locked = xt.Value.Equals("1") ? true : false; xt = childNode.Attribute(XName.Get("fPrintsWithSheet")); if (xt != null) target.Print = xt.Value.Equals("1") ? true : false; } }
private void ReadWrokSheetDrawings_Attribute(ExcelDrawing drTarget, XElement xnode) { XAttribute xt = xnode.Attribute(XName.Get("editAs")); if (xt != null) drTarget.EditAs = (ExcelEditAs)Enum.Parse(typeof(ExcelEditAs), xt.Value, true); }