A StringField is an object that can refer to a string, StringAsset, or field in a TextTable. More...
Public Member Functions | |
override string | ToString () |
StringField () | |
StringField (string text) | |
StringField (StringAsset stringAsset) | |
StringField (TextTable textTable, int fieldID) | |
StringField (StringField source) | |
void | SetDefaultTextTable (TextTable textTable) |
bool | Equals (StringField other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static bool | operator== (StringField obj1, StringField obj2) |
static bool | operator!= (StringField obj1, StringField obj2) |
static bool | IsNullOrEmpty (StringField stringField) |
Similar to string.IsNullOrEmpty. | |
static string | GetStringValue (StringField stringField) |
Returns the string value of a StringField. | |
Static Public Attributes | |
static readonly StringField | empty = new StringField() |
An empty StringField, similar to string.Empty. | |
Properties | |
string | text [get, set] |
The string that holds the value of this string field. | |
StringAsset | stringAsset [get, set] |
The String Asset that holds the value of this string field. | |
TextTable | textTable [get, set] |
The Text Table that holds the value of this string field. | |
int | textTableFieldID [get, set] |
The field ID in the Text Table. | |
string | value [get, set] |
Gets or sets the value of the String Field. | |
A StringField is an object that can refer to a string, StringAsset, or field in a TextTable.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Returns the string value of a StringField.
This function is null safe. If the StringField parameter is null, it returns an empty string.
stringField | The StringField whose value to return. |
|
inlinestatic |
Similar to string.IsNullOrEmpty.
stringField | The StringField to check. |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
static |
An empty StringField, similar to string.Empty.
|
getset |
The String Asset that holds the value of this string field.
Unused if Text or Text Table is assigned.
|
getset |
The string that holds the value of this string field.
Unused if String Asset or Text Table is assigned.
|
getset |
The Text Table that holds the value of this string field.
Unused if Text or String Asset is assigned.
|
getset |
The field ID in the Text Table.
|
getset |
Gets or sets the value of the String Field.
If setting, you can only set the text; this property doesn't change String Assets or Text Tables.