Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / ReportData Structure / Item Property / Item(Int32,Int32) Property
Row of the table.
Column of the table.
Example
In This Topic
    Item(Int32,Int32) Property
    In This Topic
    Access a field in a table.
    Syntax
    public Property Item( 
       int row,
       int column
    ) {get;}

    Parameters

    row
    Row of the table.
    column
    Column of the table.

    Property Value

    Property with value, or null if empty.
    Exceptions
    ExceptionDescription
    Coordinates are out of bounds. See ColumnCount and RowCount.
    Example
    // Print the first row:
    Console.WriteLine("First row:");
    for (int i = 0; i < reportTable.ColumnCount; i++)
    {
    	// You can use coordinates for indexing. Note that unused columns are also present in the table.
    	Property value = reportTable[0, i];
    	
    	// Empty fields are set to null.
    	if (value != null)
    		Console.Write($"{value.ToString()}; ");
    	else
    		Console.Write("<empty>; ");
    }
    Console.WriteLine();
    See Also