Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To resize columns and rows to fit text

  1. If you want to resize a column to fit text,
    1. Call the SSGetMaxTextColWidth function.
    2. Call the SSSetColWidth or SSSetColWidthInPixels function.
      To resize the width of all columns to the maximum width of the specified column, set the Col parameter to SS_ALLCOLS. To resize the width of the row header to the maximum width of the specified column, set the Col parameter to SS_HEADER.
  2. If you want to resize a row to fit text,
    1. Call the SSGetMaxTextRowHeight function.
    2. Call the SSSetRowHeight or SSSetRowHeightInPixels function.
      To resize the height of all rows to the maximum height of the specified row, set the Row parameter to SS_ALLROWS. To resize the height of the column header to the maximum height of the specified row, set the Row parameter to SS_HEADER.
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.