//protected void SetZoneCornerDR(coordinateXY zone)
        //{
        //    for (int x = column_stats.Count - 1; x >= 0; x--)
        //    {
        //        for (int y = row_stats.Count - 1; y >= 0; y--)
        //        {
        //            CellContentInfo info = Get(x, y);
        //            if (info != null)
        //            {
        //                if (info.type == total.dominantType)
        //                {
        //                    zone.width = x -zone.x;
        //                    zone.height = y - zone.y;
        //                    return;
        //                }
        //            }
        //        }

        //    }
        //}

        public coordinateXY GetValueZone()
        {
            coordinateXY output = new coordinateXY();

            // SetZoneCornerUL(output);

            return(output);
        }
示例#2
0
        public void Transpose()
        {
            matrix.Transpose();
            coordinateXY transposedZone = new coordinateXY()
            {
                x = valueZone.y,
                y = valueZone.x
            };

            valueZone = transposedZone;
        }
 protected void SetZoneCornerUL(coordinateXY zone)
 {
     for (int x = 0; x < column_stats.Count; x++)
     {
         for (int y = 0; y < row_stats.Count; y++)
         {
             CellContentInfo info = Get(x, y);
             if (info != null)
             {
                 if (info.type == total.dominantType)
                 {
                     zone.x = x;
                     zone.y = y;
                     return;
                 }
             }
         }
     }
 }