DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Color.FromString | Methods | Properties
Creates a color using the hex string.
// C# public ITGIS_Color FromString( WideString _value );
' VisualBasic Public Function FromString( ByVal _value As WideString ) As ITGIS_Color
// Oxygene public function FromString( _value : WideString ) : ITGIS_Color;
Name | Type | Description |
---|---|---|
_value | WideString | a CSS string representation of a color; see remarks: |
Type | Description |
---|---|
ITGIS_Color | Created color. |
Valid CSS color strings are listed below.
hex color with hash symbol | #090, #009900, #090a, #009900aa, |
hex color without hash symbol | 090, 009900, 090a, 009900aa, |
rgb color | rgb(34, 12, 64, 0.6), rgba(34, 12, 64, 0.6), rgb(34 12 64 / 0.6), rgba(34 12 64 / 0.3) rgb(34.0 12 64 / 60%), rgba(34.6 12 64 / 30%) |
hsl color | hsl(30, 100%, 50%, 0.6), hsla(30, 100%, 50%, 0.6), hsl(30 100% 50% / 0.6), hsla(30 100% 50% / 0.6), hsl(30.0 100% 50% / 60%), hsla(30.2 100% 50% / 60%) |