Beispiel #1
0
 internal static CT_OneCellAnchor Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     CT_OneCellAnchor oneCellAnchor = new CT_OneCellAnchor();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "from")
         {
             oneCellAnchor.from = CT_Marker.Parse(childNode, namespaceManager);
         }
         else if (childNode.LocalName == "sp")
         {
             oneCellAnchor.sp = CT_Shape.Parse(childNode, namespaceManager); ;
         }
         else if (childNode.LocalName == "pic")
         {
             oneCellAnchor.connector = CT_Connector.Parse(childNode, namespaceManager);
         }
         else if (childNode.LocalName == "cxnSp")
         {
             oneCellAnchor.groupShape = CT_GroupShape.Parse(childNode, namespaceManager);
         }
         else if (childNode.LocalName == "grpSp")
         {
             oneCellAnchor.groupShape = CT_GroupShape.Parse(childNode, namespaceManager);
         }
         else if (childNode.LocalName == "graphicFrame")
         {
             oneCellAnchor.graphicFrame = CT_GraphicalObjectFrame.Parse(childNode, namespaceManager);
         }
         else if (childNode.LocalName == "clientData")
         {
             oneCellAnchor.clientData = CT_AnchorClientData.Parse(childNode, namespaceManager);
         }
     }
     return oneCellAnchor;
 }
Beispiel #2
0
 internal static CT_OneCellAnchor Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     CT_OneCellAnchor oneCellAnchor = new CT_OneCellAnchor();
     oneCellAnchor.from = CT_Marker.Parse(node.FirstChild, namespaceManager);
     CT_Shape ctShape = CT_Shape.Parse(node.SelectSingleNode("xdr:sp", namespaceManager), namespaceManager);
     oneCellAnchor.sp = ctShape;
     CT_Picture ctPic = CT_Picture.Parse(node.SelectSingleNode("xdr:pic", namespaceManager), namespaceManager);
     oneCellAnchor.picture = ctPic;
     CT_Connector ctConnector = CT_Connector.Parse(node.SelectSingleNode("xdr:cxnSp", namespaceManager), namespaceManager);
     oneCellAnchor.connector = ctConnector;
     CT_GroupShape ctGroupShape = CT_GroupShape.Parse(node.SelectSingleNode("xdr:grpSp", namespaceManager), namespaceManager);
     oneCellAnchor.groupShape = ctGroupShape;
     CT_GraphicalObjectFrame ctGraphFrame = CT_GraphicalObjectFrame.Parse(node.SelectSingleNode("xdr:graphicFrame", namespaceManager), namespaceManager);
     oneCellAnchor.graphicFrame = ctGraphFrame;
     return oneCellAnchor;
 }