Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CsvRow

OfficeIMO.CSV

Namespace
OfficeIMO.CSV
Assembly
OfficeIMO.CSV
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed
Attributes
DefaultMember("Item")

Represents a single row in a CSV document.

Inheritance

  • object
  • CsvRow

Usage

Explore 13 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 12

Methods

Get``1 2 overloads
public T? Get<T>(string columnName) #

Retrieves a typed value by column name.

Type Parameters

T

Parameters

columnName string required

Returns

T?
public T? Get<T>(int index) #

Retrieves a typed value by index.

Type Parameters

T

Parameters

index int required

Returns

T?

Properties

public object? this[int index] { get; set; } #

Gets or sets a field value by zero-based index.

Parameters

index int required
public object? this[string columnName] { get; set; } #

Gets or sets a field value by column name.

Parameters

columnName string required
public int FieldCount { get; } #

Returns the number of fields in the row.

Extension Methods

public static bool AsBoolean(CsvRow row, string columnName) #

Returns the field value as a boolean.

Parameters

row OfficeIMO.CSV.CsvRow required
columnName string required

Returns

bool
public static DateTime AsDateTime(CsvRow row, string columnName) #

Returns the field value as a DateTime.

Parameters

row OfficeIMO.CSV.CsvRow required
columnName string required

Returns

DateTime
public static int AsInt32(CsvRow row, string columnName) #

Returns the field value as a 32-bit integer.

Parameters

row OfficeIMO.CSV.CsvRow required
columnName string required

Returns

int
public static string? AsString(CsvRow row, string columnName) #

Returns the field value as a string.

Parameters

row OfficeIMO.CSV.CsvRow required
columnName string required

Returns

string?