SetWidth
Set the display column width of a column in number of characters.
BOOL SetWidth( double iWidth = -1 )
TRUE if set the digitmode successfully, otherwise FALSE.
EX1
// Set column width of first column in first worksheet in project void Column_SetWidth_Ex1() { WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return; Worksheet wks(wp.GetName()); int iWidth = 3; BOOL b = wks.Columns(0).SetWidth(iWidth); out_int("col(1) width set to be very small, ", wks.Columns(0).GetWidth()); MessageBox(NULL, "Wait...", "Click to expand column width"); wks.Columns(0).SetWidth(); out_str("col(1) width set to show all data"); }
Column::GetWidth
origin.h