Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4i

Application v 5.22a

  

 

Chapter EightData Functions (continued)

DataSheetSetColumnWidth Function

Overview

The DataSheetSetColumnWidth function sets the display width of a column as pixels or a CSS measurement.

Syntax/Parameters

Syntax

int = DataSheetSetColumnWidth ( handle hSheet, int column, int pixels | string value );

Parameters

hSheet

A handle to a Data Sheet Object.

column

An int specifying a zero-based column.

pixels

An int specifying pixels 0 to 10000. Or,

value

A string as a CSS style measurement.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure.

Remarks

The column width only applies if the Data Sheet will be used to display data in a Data Control, Data View or is exported to Excel.

To hide a column, set the width to 0 pixels.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic