Class SheetColumn
Namespace: UnityEditor.Localization.Plugins.Google.Columns
Syntax
[Serializable]
public abstract class SheetColumn
Properties
Column
The Id of the column.
Declaration
public string Column { get; set; }
Property Value
Type | Description |
---|---|
String |
ColumnIndex
Column as an index where 0 = 'A', 1 = 'B' etc.
Declaration
public int ColumnIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
PushFields
Declaration
public abstract PushFields PushFields { get; }
Property Value
Type | Description |
---|---|
PushFields |
Methods
ColumnNameToIndex(String)
Convert a column name to its id value. E.G 'A' = 0, 'B' = 1, 'AA' = 26, 'AB' = 27
Declaration
public static int ColumnNameToIndex(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the column, case insensitive. |
Returns
Type | Description |
---|---|
Int32 | The column index or 0. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
IndexToColumnName(Int32)
Converts a column id value into its name. Column ids start at 0. E.G 0 = 'A', 1 = 'B', 26 = 'AA', 27 = 'AB'
Declaration
public static string IndexToColumnName(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
String | The column name or null. |
PullBegin(StringTableCollection)
Declaration
public abstract void PullBegin(StringTableCollection collection)
Parameters
Type | Name | Description |
---|---|---|
StringTableCollection | collection |
PullCellData(SharedTableData.SharedTableEntry, String, String)
Declaration
public abstract void PullCellData(SharedTableData.SharedTableEntry keyEntry, string cellValue, string cellNote)
Parameters
Type | Name | Description |
---|---|---|
SharedTableData.SharedTableEntry | keyEntry | |
String | cellValue | |
String | cellNote |
PullEnd()
Declaration
public virtual void PullEnd()
PushBegin(StringTableCollection)
Declaration
public abstract void PushBegin(StringTableCollection collection)
Parameters
Type | Name | Description |
---|---|---|
StringTableCollection | collection |
PushCellData(SharedTableData.SharedTableEntry, IList<StringTableEntry>, out String, out String)
Extracts the data that should populate the columns cell for the row associated with the Key.
Declaration
public abstract void PushCellData(SharedTableData.SharedTableEntry keyEntry, IList<StringTableEntry> tableEntries, out string value, out string note)
Parameters
Type | Name | Description |
---|---|---|
SharedTableData.SharedTableEntry | keyEntry | The Key that represents the row in the spreadsheet. |
IList<StringTableEntry> | tableEntries | The StringTableEntry for the current SharedTableData.SharedTableEntry. The order of the tables will match the source StringTableCollection, If a table does not contain data for the current key then a null entry will be used. |
String | value | The value to be used for the cell. This can be null if PushFields is |
String | note | The value to be used for the cell note. This can be null if PushFields is |
PushEnd()
Called after all calls to
Declaration
public virtual void PushEnd()
PushHeader(StringTableCollection, out String, out String)
Sets the column title and optional note. These values are always set regardless of the value of PushFields.
Declaration
public abstract void PushHeader(StringTableCollection collection, out string header, out string headerNote)
Parameters
Type | Name | Description |
---|---|---|
StringTableCollection | collection | |
String | header | The title to be used for the column header. |
String | headerNote | Optional note that can be added to the header. |