public CT_LegendPos AddNewLegendPos() { if (this.legendPosField == null) this.legendPosField = new CT_LegendPos(); return this.legendPosField; }
private LegendPosition ToLegendPosition(CT_LegendPos ctLegendPos) { switch (ctLegendPos.val) { case ST_LegendPos.b: return LegendPosition.BOTTOM; case ST_LegendPos.l: return LegendPosition.LEFT; case ST_LegendPos.r: return LegendPosition.RIGHT; case ST_LegendPos.t: return LegendPosition.TOP; case ST_LegendPos.tr: return LegendPosition.TOP_RIGHT; default: throw new ArgumentException(); } }
public static CT_LegendPos Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_LegendPos ctObj = new CT_LegendPos(); if (node.Attributes["val"] != null) ctObj.val = (ST_LegendPos)Enum.Parse(typeof(ST_LegendPos), node.Attributes["val"].Value); return ctObj; }
private LegendPosition ToLegendPosition(CT_LegendPos ctLegendPos) { switch (ctLegendPos.val) { case ST_LegendPos.b: return LegendPosition.Bottom; case ST_LegendPos.l: return LegendPosition.Left; case ST_LegendPos.r: return LegendPosition.Right; case ST_LegendPos.t: return LegendPosition.Top; case ST_LegendPos.tr: return LegendPosition.TopRight; default: throw new ArgumentException(); } }