Class ColumnDataType
Represents the data type configuration for a spreadsheet column.
Contains information about the base data type and additional metadata like range definitions,
type references for enums/custom classes, and object reference types.
Inheritance
ColumnDataType
Assembly: Glitch9.AIDevKit.Sheets.dll
Syntax
[Serializable]
public sealed class ColumnDataType
Constructors
|
Edit this page
View Source
ColumnDataType()
Initializes a new instance of the ColumnDataType class with default values.
Declaration
|
Edit this page
View Source
ColumnDataType(DataType, TypeReference, RangeDefinition, ObjectReferenceType, LocalizationReference)
Initializes a new instance of the ColumnDataType class with specified configuration.
Declaration
public ColumnDataType(DataType type, TypeReference typeReference = null, RangeDefinition rangeDefinition = null, ObjectReferenceType objectReferenceType = ObjectReferenceType.Direct, LocalizationReference localizationReference = null)
Parameters
| Type |
Name |
Description |
| DataType |
type |
The base data type.
|
| TypeReference |
typeReference |
Optional type reference for Enum or CustomClass types.
|
| RangeDefinition |
rangeDefinition |
Optional range definition for numeric range types.
|
| ObjectReferenceType |
objectReferenceType |
The object reference type for Unity Object types.
|
| LocalizationReference |
localizationReference |
Optional localization reference configuration.
|
Properties
|
Edit this page
View Source
DataType
Gets or sets the base data type of the column.
Declaration
public DataType DataType { get; }
Property Value
|
Edit this page
View Source
LocalizationReference
Gets or sets the localization reference configuration for columns that reference localized data.
Contains information about the referenced table and column for localization lookups.
Declaration
public LocalizationReference LocalizationReference { get; }
Property Value
|
Edit this page
View Source
ObjectReferenceType
Gets or sets the object reference type for Unity Object type columns.
Determines whether the reference is Direct, Addressable, or URL-based.
Declaration
public ObjectReferenceType ObjectReferenceType { get; }
Property Value
|
Edit this page
View Source
RangeDefinition
Gets or sets the range definition for numeric range type columns (e.g., IntRange, FloatRange).
Defines minimum, maximum, and step values.
Declaration
public RangeDefinition RangeDefinition { get; }
Property Value
|
Edit this page
View Source
TypeReference
Gets or sets the type reference for Enum or CustomClass type columns.
Contains the fully qualified type name.
Declaration
public TypeReference TypeReference { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
operator ==(ColumnDataType, DataType)
Declaration
public static bool operator ==(ColumnDataType cdt, DataType dt)
Parameters
Returns
|
Edit this page
View Source
operator ==(DataType, ColumnDataType)
Declaration
public static bool operator ==(DataType dt, ColumnDataType cdt)
Parameters
Returns
|
Edit this page
View Source
explicit operator DataType(ColumnDataType)
Declaration
public static explicit operator DataType(ColumnDataType columnDataType)
Parameters
Returns
|
Edit this page
View Source
explicit operator ColumnDataType(DataType)
Declaration
public static explicit operator ColumnDataType(DataType type)
Parameters
Returns
|
Edit this page
View Source
operator !=(ColumnDataType, DataType)
Declaration
public static bool operator !=(ColumnDataType cdt, DataType dt)
Parameters
Returns
|
Edit this page
View Source
operator !=(DataType, ColumnDataType)
Declaration
public static bool operator !=(DataType dt, ColumnDataType cdt)
Parameters
Returns
Extension Methods