/// <summary> /// CT_Anchor class constructor /// </summary> public CT_Anchor() { this.effectExtentField = new CT_EffectExtent(); this.positionVField = new CT_PosV(); this.positionHField = new CT_PosH(); this.simplePosField = new CT_Point2D(); }
public static CT_PosV Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_PosV ctObj = new CT_PosV(); ctObj.posOffset = XmlHelper.ReadInt(node.Attributes["wp:posOffset"]); if (node.Attributes["wp:align"] != null) ctObj.align = (ST_AlignV)Enum.Parse(typeof(ST_AlignV), node.Attributes["wp:align"].Value); if (node.Attributes["wp:relativeFrom"] != null) ctObj.relativeFrom = (ST_RelFromV)Enum.Parse(typeof(ST_RelFromV), node.Attributes["wp:relativeFrom"].Value); return ctObj; }