property ExFileView.ColumnWidth(ColumnName as String) as Long

Retrieves or sets a value that indicates the column's width.

TypeDescription
ColumnName as String A String expression that indicates the columns nam. One of the following is valid: "Name", "Size", "Type" or "Modified"
Long A long expression that indicates the column's width in pixels.

Use the ColumnWidth property to change the column's width. Use the ColumnVisible to hide a column. By default, all columns are visible. Use the ColumnVisible property to hide a column.  Use the ColumnCaption property to specify the column's caption. Use the HeaderVisible property to show or hide the control's header bar. Use the ColumnAutoResize property to specify whether the control resizes the visible columns so all fit the control's client area.

The following VB sample changes the 'Size' column width:

ExFileView1.ColumnWidth("Size") = 16

The following C++ sample changes the 'Size' column width:

m_fileview.SetColumnWidth( "Size", 16 );

The following VB.NET sample changes the 'Size' column width:

AxExFileView1.set_ColumnWidth("Size", 16)

The following C# sample changes the 'Size' column width:

axExFileView1.set_ColumnWidth("Name", 16);

The following VFP sample changes the 'Size' column width:

with thisform.FileView1
   .Object.ColumnWidth("Size") = 16
endwith