Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

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, dword width | string value );

Parameters

hSheet

A handle to a Data Sheet Object.

column

An int specifying a zero-based column.

width

A 32-bit dword containing specifying the width as in default units (pixels) or as a PVALUE. 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

Page revised 2024-04-22