//core/io.islandtime.format/TextStyle
TextStyle¶
common
enum TextStyle : Enum<TextStyle>
A style of text. The meaning may vary depending on the context. Standalone styles should be used when displaying text by itself since some languages have different names in the context of a date and time.
Entries¶
FULL | common FULL |
FULL_STANDALONE | common FULL_STANDALONE |
SHORT | common SHORT |
SHORT_STANDALONE | common SHORT_STANDALONE |
NARROW | common NARROW |
NARROW_STANDALONE | common NARROW_STANDALONE |
Properties¶
Name | Summary |
---|---|
entries | common val entries: EnumEntries<TextStyle> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
name | common val name: String |
ordinal | common val ordinal: Int |
Functions¶
Name | Summary |
---|---|
asNormal | common fun asNormal(): TextStyle Convert to a normal style, if standalone. |
asStandalone | common fun asStandalone(): TextStyle Convert to a standalone style, if normal. |
isStandalone | common fun isStandalone(): Boolean Is this a standalone style? |
valueOf | common fun valueOf(value: String): TextStyle Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
values | common fun values(): Array<TextStyle> Returns an array containing the constants of this enum type, in the order they're declared. |