Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectViewColumn.Width [Property][Get/Set]

IObjectViewColumn.Width [Property][Get/Set]

Gets or Sets the width in pixels of this column.

Defined As

Execution Result

If the property get succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. If the width is out of range, the result will be InvalidArgument.


A valid width is 0-1000.

Calling Syntax

This example assumes there is a valid column as retrieved from an ObjectView. (for example, VBA: objectView.Columns.Item(1)).


Sub Example(objectViewColumn As Object)
Dim width As Long
`Getting Property value
width = objectViewColumn.Width
`Setting Property value
objectViewColumn.Width = 150
End Sub


FUNCTION Example(OBJECT hObjectViewColumn)
// Getting property value
INT width = _ObjectGetProperty(hObjectViewColumn, "Width");
_ObjectSetProperty(hObjectViewColumn, "Width", 150);