IWbs.GetColumnPosition Method

NOTE: This member is now obsolete. Use Qdv.UserApi.Fields.IWbsField.Formatting property and then get ColumnPosition property instead. This is a newer and more flexible API that was introduced in QDV 7.18.655. Access the WBS fields via Qdv.UserApi.IEstimate.WbsFieldsRepository property.

Gets the position of a column in the expanded WBS using its name or its unique identifier.
<Obsolete("Use Qdv.UserApi.Fields.IWbsField.Formatting property and then get ColumnPosition property instead.
This is a newer and more flexible API that was introduced in QDV 7.18.655. Access the WBS fields via Qdv.UserApi.IEstimate.WbsFieldsRepository property.")> _ 
Function GetColumnPosition( _ 
ByVal columnNameOrUniqueIdentifier As String, _ 
Optional ByVal useUniqueIdentifierInstead As Boolean = False _ 
) As Integer
This language is not supported or no code example is available.
[Obsolete("Use Qdv.UserApi.Fields.IWbsField.Formatting property and then get ColumnPosition property instead.
This is a newer and more flexible API that was introduced in QDV 7.18.655. Access the WBS fields via Qdv.UserApi.IEstimate.WbsFieldsRepository property.")] 
int GetColumnPosition( 
string columnNameOrUniqueIdentifier
bool useUniqueIdentifierInstead = False 
)
This language is not supported or no code example is available.

Parameters

columnNameOrUniqueIdentifier
string

The column name or its unique identifier.

useUniqueIdentifierInstead
bool

Optional. The default value is False.If set to true, then the unique identifier is used; otherwise the name is used.

Return Value

int

The position of the column, zero based (0 = A, 1 = B, 25 = AA, etc.). Returns -1 when no matching column was found.

Remarks
 
When using the name, several columns may have the same name particularly when a field from the minutes is broken down in the WBS. In this case, the function returns the position of the first matching column.
Version
 
Available since QDV 7.17.646.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition