FixedString struct | QSYS API Reference Guide
Estimated reading time: 3 minutes
Holds a fixed-string value with the specified length.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Properties
Type | Name | Description |
---|---|---|
Char | Item | This indexer. |
Int32 | Length | Gets the length of the fixed-string. |
String | Value | Gets the value of the fixed-string as a string. |
Object | ValueAsObject | Gets the value of the fixed-string as an object. |
Methods
Signature | Description |
---|---|
CompareTo(Object) | Compares this instance with a specified object returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified object. |
Convert(String) | Convert string to FixedSize string. |
Equals(Object) | Determines whether two object instances are equal. |
GetHashCode() | Returns the hash code for this instance. |
IsBlanks() | Determines if the fixed string is null or whitespace. |
ToLower() | Convert to string Lowercase. |
ToString() | Convert to string. |
ToUpper() | Convert to string Uppercase. |
Trim() | Returns the string that results from removing all leading and trailing white-space characters from the current string value. |
TrimEnd() | Returns the string that results from removing all white-space characters from the end of the current string value. |
TrimStart() | Returns the string that results from removing all white-space characters from the start of the current string value. |
int CompareTo(object obj)
Compares this instance with a specified object returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified object.
int CompareTo(object obj)
Parameters
Type | Parameter name | Description |
---|---|---|
Object | obj | The object to compare against. |
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the obj parameter. |
IFixedSizeType<string> Convert(string value)
Convert string to FixedSize string.
IFixedSizeType<string> Convert(string value)
Parameters
Type | Parameter name | Description |
---|---|---|
String | value | Input string value. |
Returns
Type | Description |
---|---|
IFixedSizeType`1 | A new FixedSize string of the indicated length. |
bool Equals(object obj)
Determines whether two object instances are equal.
bool Equals(object obj)
Parameters
Type | Parameter name | Description |
---|---|---|
Object | obj | Object to compare against. |
Returns
Type | Description |
---|---|
Boolean | true if the specified object is equal to the current object; otherwise, false. |
int GetHashCode()
Returns the hash code for this instance.
int GetHashCode()
bool IsBlanks()
Determines if the fixed string is null or whitespace.
bool IsBlanks()
string ToLower()
Convert to string Lowercase.
string ToLower()
string ToString()
Convert to string.
string ToString()
string ToUpper()
Convert to string Uppercase.
string ToUpper()
string Trim()
Returns the string that results from removing all leading and trailing white-space characters from the current string value.
string Trim()
string TrimEnd()
Returns the string that results from removing all white-space characters from the end of the current string value.
string TrimEnd()
string TrimStart()
Returns the string that results from removing all white-space characters from the start of the current string value.
string TrimStart()