public CT_Orientation AddNewOrientation() { this.orientationField = new CT_Orientation(); return this.orientationField; }
public static CT_Orientation Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_Orientation ctObj = new CT_Orientation(); if (node.Attributes["val"] != null) ctObj.val = (ST_Orientation)Enum.Parse(typeof(ST_Orientation), node.Attributes["val"].Value); return ctObj; }
private static AxisOrientation toAxisOrientation(CT_Orientation ctOrientation) { switch (ctOrientation.val) { case ST_Orientation.minMax: return AxisOrientation.MinToMax; case ST_Orientation.maxMin: return AxisOrientation.MaxToMin; default: throw new ArgumentException(); } }