0 Replies Latest reply: Oct 8, 2016 6:14 PM by Patrik Seger RSS

    Can not use SetBounds to set to object to full size

    Patrik Seger

      I use the SetBounds method to set the size of Table, but it does not work as I would like to.

      I have a Table placed at 4,0 and of size 20 x 12 and after

      using (sheet.SuspendedLayout) {
                  ITable table = sheet.ISheet.CreateTable(properties: properties);
                  sheetCell = sheet.ISheet.CellFor(table);
                  sheetCell.SetBounds(4, 0, 20, 12);
      }
      

      the position is set to 4,0 but the size is set to only about 11 x 12. I can though manually change the size in Sense Desktop to 20 x 12.

       

      If I instead try to set the size to 19 x 12, the it succeeds to set the size to 19 x 12.

      using (sheet.SuspendedLayout) {
                  ITable table = sheet.ISheet.CreateTable(properties: properties);
                  sheetCell = sheet.ISheet.CellFor(table);
                  sheetCell.SetBounds(4, 0, 19, 12);
      }
      

       

      Is there something I'm missing out here?

       

      I'm using Sense 3.0.

       

      Br Patrik