ListViewExtrasGetColumnNumber Method |
get the index of a column name
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int GetColumnNumber(
ListView lv,
string columnName,
string LVIField = "Text"
)
Public Shared Function GetColumnNumber (
lv As ListView,
columnName As String,
Optional LVIField As String = "Text"
) As Integer
public:
static int GetColumnNumber(
ListView^ lv,
String^ columnName,
String^ LVIField = L"Text"
)
static member GetColumnNumber :
lv : ListView *
columnName : string *
?LVIField : string
(* Defaults:
let _LVIField = defaultArg LVIField "Text"
*)
-> int
Parameters
- lv
- Type: System.Windows.FormsListView
- columnName
- Type: SystemString
the column name - LVIField (Optional)
- Type: SystemString
Return Value
Type:
Int32the index of the column, -1 if not found
See Also