Craig's Utility Library  4.0 Beta
Utilities.IO.FileFormats.Delimited.Row Class Reference

Individual row within a delimited file More...

Inheritance diagram for Utilities.IO.FileFormats.Delimited.Row:

Public Member Functions

 Row ()
 Constructor More...
 
 Row (string Delimiter)
 Constructor More...
 
 Row (string Content, string Delimiter)
 Constructor More...
 
void Add (Cell item)
 Adds a Cell to the file More...
 
void Clear ()
 Clears the file More...
 
bool Contains (Cell item)
 Determines if the file contains a Cell More...
 
void CopyTo (Cell[] array, int arrayIndex)
 Copies the delimited file to an array More...
 
IEnumerator< CellGetEnumerator ()
 Gets the enumerator for the delimited file More...
 
int IndexOf (Cell item)
 Index of a specific Cell More...
 
void Insert (int index, Cell item)
 Inserts a Cell at a specific index More...
 
bool Remove (Cell item)
 Removes a Cell from the file More...
 
void RemoveAt (int index)
 Removes a Cell at a specific index More...
 
override string ToString ()
 To string function More...
 

Properties

int Count [get]
 Number of Cells More...
 
string Delimiter [get, set]
 Delimiter used More...
 
bool IsReadOnly [get]
 Is the file read only More...
 
IList< CellCells [get]
 Cells within the row More...
 
Cell this[int Position] [get, set]
 Returns a cell within the row More...
 

Detailed Description

Individual row within a delimited file

Definition at line 34 of file Row.cs.

Constructor & Destructor Documentation

Utilities.IO.FileFormats.Delimited.Row.Row ( )

Constructor

Definition at line 39 of file Row.cs.

Utilities.IO.FileFormats.Delimited.Row.Row ( string  Delimiter)

Constructor

Parameters
DelimiterDelimiter to parse the individual cells

Definition at line 47 of file Row.cs.

Utilities.IO.FileFormats.Delimited.Row.Row ( string  Content,
string  Delimiter 
)

Constructor

Parameters
ContentContent of the row
DelimiterDelimiter to parse the individual cells

Definition at line 58 of file Row.cs.

Member Function Documentation

void Utilities.IO.FileFormats.Delimited.Row.Add ( Cell  item)

Adds a Cell to the file

Parameters
itemCell to add

Definition at line 118 of file Row.cs.

void Utilities.IO.FileFormats.Delimited.Row.Clear ( )

Clears the file

Definition at line 126 of file Row.cs.

bool Utilities.IO.FileFormats.Delimited.Row.Contains ( Cell  item)

Determines if the file contains a Cell

Parameters
itemCell to check for
Returns
True if it does, false otherwise

Definition at line 136 of file Row.cs.

void Utilities.IO.FileFormats.Delimited.Row.CopyTo ( Cell[]  array,
int  arrayIndex 
)

Copies the delimited file to an array

Parameters
arrayArray to copy to
arrayIndexIndex to start at

Definition at line 146 of file Row.cs.

IEnumerator<Cell> Utilities.IO.FileFormats.Delimited.Row.GetEnumerator ( )

Gets the enumerator for the delimited file

Returns
The enumerator for this file

Definition at line 155 of file Row.cs.

int Utilities.IO.FileFormats.Delimited.Row.IndexOf ( Cell  item)

Index of a specific Cell

Parameters
itemCell to search for
Returns
The index of a specific Cell

Definition at line 165 of file Row.cs.

void Utilities.IO.FileFormats.Delimited.Row.Insert ( int  index,
Cell  item 
)

Inserts a Cell at a specific index

Parameters
indexIndex to insert at
itemCell to insert

Definition at line 175 of file Row.cs.

bool Utilities.IO.FileFormats.Delimited.Row.Remove ( Cell  item)

Removes a Cell from the file

Parameters
itemCell to remove
Returns
True if it is removed, false otherwise

Definition at line 185 of file Row.cs.

void Utilities.IO.FileFormats.Delimited.Row.RemoveAt ( int  index)

Removes a Cell at a specific index

Parameters
indexIndex of the Cell to remove

Definition at line 194 of file Row.cs.

override string Utilities.IO.FileFormats.Delimited.Row.ToString ( )

To string function

Returns
The content of the row in string form

Definition at line 212 of file Row.cs.

Property Documentation

IList<Cell> Utilities.IO.FileFormats.Delimited.Row.Cells
getprotected

Cells within the row

Definition at line 101 of file Row.cs.

int Utilities.IO.FileFormats.Delimited.Row.Count
get

Number of Cells

Definition at line 81 of file Row.cs.

string Utilities.IO.FileFormats.Delimited.Row.Delimiter
getset

Delimiter used

Definition at line 88 of file Row.cs.

bool Utilities.IO.FileFormats.Delimited.Row.IsReadOnly
get

Is the file read only

Definition at line 94 of file Row.cs.

Cell Utilities.IO.FileFormats.Delimited.Row.this[int Position]
getset

Returns a cell within the row

Parameters
PositionThe position of the cell
Returns
The specified cell

Definition at line 109 of file Row.cs.


The documentation for this class was generated from the following file: