Share this page

# ColumnToSearch Class

Class defining the table column in which to search.

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

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: