Пример #1
0
 public CT_Selection AddNewSelection()
 {
     if (this.selectionField == null)
         selectionField = new List<CT_Selection>();
     CT_Selection newSel = new CT_Selection();
     selectionField.Add(newSel);
     return newSel;
 }
Пример #2
0
 public CT_Selection InsertNewSelection(int index)
 {       
     CT_Selection sel = new CT_Selection();
     this.selectionField.Insert(index, sel);
     return sel;
 }
Пример #3
0
 public static CT_Selection Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Selection ctObj = new CT_Selection();
     if (node.Attributes["pane"] != null)
         ctObj.pane = (ST_Pane)Enum.Parse(typeof(ST_Pane), node.Attributes["pane"].Value);
     ctObj.activeCell = XmlHelper.ReadString(node.Attributes["activeCell"]);
     ctObj.activeCellId = XmlHelper.ReadUInt(node.Attributes["activeCellId"]);
     ctObj.sqref = XmlHelper.ReadString(node.Attributes["sqref"]);
     return ctObj;
 }