예제 #1
0
        /**
         * Compares two <code>XSSFRow</code> objects.  Two rows are equal if they belong to the same worksheet and
         * their row indexes are equal.
         *
         * @param   row   the <code>XSSFRow</code> to be compared.
         * @return  <ul>
         *      <li>
         *      the value <code>0</code> if the row number of this <code>XSSFRow</code> is
         *      equal to the row number of the argument <code>XSSFRow</code>
         *      </li>
         *      <li>
         *      a value less than <code>0</code> if the row number of this this <code>XSSFRow</code> is
         *      numerically less than the row number of the argument <code>XSSFRow</code>
         *      </li>
         *      <li>
         *      a value greater than <code>0</code> if the row number of this this <code>XSSFRow</code> is
         *      numerically greater than the row number of the argument <code>XSSFRow</code>
         *      </li>
         *      </ul>
         * @throws IllegalArgumentException if the argument row belongs to a different worksheet
         */
        public int CompareTo(XSSFRow other)
        {
            if (this.Sheet != other.Sheet)
            {
                throw new ArgumentException("The compared rows must belong to the same sheet");
            }

            return(RowNum.CompareTo(other.RowNum));
        }
예제 #2
0
        // public Wtemplate[] Children { get; set; }



        public override string ToString()
        {
            return("Template: " + _id
                   + "Clazz: " + Clazz.ToJson()
                   + "RowNum: " + RowNum.ToJson()
                   + "_c: " + _c.ToString()
                   + "_m: " + _m.ToString()
                   + "ActiveFlag: " + ActiveFlag.ToJson()
                   + "Key: " + Key.ToJson()
                   + "Type: " + Type.ToJson()
                   + "Value: " + Value.ToJson()
                   + "TemplateList: " + TemplateList.ToJson()
                   );
        }
예제 #3
0
        public override string ToString()
        {
            string aidText = null;

            if (this.AidKey != null)
            {
                aidText = this.AidKey.Value.ToString();
            }
            else
            {
                aidText = "Invalid aid byte " + this.AidByte.ToHex();
            }

            return("Row:" + RowNum.ToString() + " Column:" + ColNum.ToString()
                   + " AID: " + aidText);
        }
예제 #4
0
 public string[] ToArray()
 {
     return(new string[] { this.ToString(), PFName, PFNum.ToString(), RobotTask, Operation, Geoset, RowNum.ToString() });
 }
예제 #5
0
 public string OutPut()
 {
     return(this.ToString() + "," + PFName + "," + PFNum.ToString() + "," + RobotTask + "," + Operation + "," + Geoset + "," + RowNum.ToString());
 }