Пример #1
0
 private LayoutMode toLayoutMode(CT_LayoutMode ctLayoutMode)
 {
     switch (ctLayoutMode.val)
     {
         case ST_LayoutMode.edge: return LayoutMode.Edge;
         case ST_LayoutMode.factor: return LayoutMode.Factor;
         default:
             throw new ArgumentException();
     }
 }
Пример #2
0
 public static CT_LayoutMode Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_LayoutMode ctObj = new CT_LayoutMode();
     if (node.Attributes["val"] != null)
         ctObj.val = (ST_LayoutMode)Enum.Parse(typeof(ST_LayoutMode), node.Attributes["val"].Value);
     return ctObj;
 }
Пример #3
0
 public CT_LayoutMode AddNewWMode()
 {
     if (this.wModeField == null)
         this.wModeField = new CT_LayoutMode();
     return wModeField;
 }
Пример #4
0
 public CT_LayoutMode AddNewHMode()
 {
     if(this.hModeField == null)
         this.hModeField = new CT_LayoutMode();
     return hModeField;
 }
Пример #5
0
 public CT_LayoutMode AddNewYMode()
 {
     this.yModeField = new CT_LayoutMode();
     return yModeField;
 }
Пример #6
0
 public CT_LayoutMode AddNewXMode()
 {
     this.xModeField = new CT_LayoutMode();
     return xModeField;
 }