Open topic with navigation

# ColumnToSearch Class

Class defining the table column in which to search.

Note: Supported in LeanFT versions 14.51 and later.

C# Syntax

                                public class ColumnToSearch

Remarks

Usage example:

`var columnToSearch = ColumnToSearch.ByIndex(5);`

`var columnToSearch = ColumnToSearch.ByHeader("header2", 1);`

Inheritance Hierarchy

System.Object
HP.LFT.SDK.Web.ColumnToSearch

Public Methods

| Name | Description
--- | --- | ---
| ByIndex | Returns the object that specifies the table column in which to search. C# Syntax
                                public static ColumnToSearch ByIndex(uint columnIndex)
Parameters columnIndex 0-based column index.
| ByHeader(String) | Returns the object that specifies the table column in which to search. C# Syntax
                                public static ColumnToSearch ByHeader(
       string columnHeader
    )
Parameters columnHeader The column's name.
| ByHeader(String,UInt32) | Returns the object that specifies the table column in which to search. C# Syntax
                                public static ColumnToSearch ByHeader(
       string columnHeader,
       uintcolumnHeaderOccurrence
    )
Parameters columnHeader The column's name. columnHeaderOccurrence 0-based ordinal number of the column name's occurrence if the table has multiple columns with the same name.

Top