Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectViewColumns.Add [Method]

IObjectViewColumns.Add [Method]

Adds a visible custom column to the ObjectView.

Defined As



[in] The string ID uniquely identifying this column (1-64).


[in] The title to be displayed in the column header (0-256).


[in] The width of this column in pixels (0-1000).

Execution Result

If the method succeeds, the return value will be Success. If an argument is out of range, the return value will be InvalidArgument. If the column cannot be added, the return value is GeneralFailure.

See Also

OVColumnAdded [Event]

Calling Syntax

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


Sub Example(Columns As Object)
Columns.Add "NameID", "New Column", 120;
End Sub


FUNCTION Example(OBJECT hColumns)
_ObjectCallMethod(hColumns, "Add", "NameID", "New Column", 120);