How to set the colour/indicator for a web field in code

The documentation implies that I can set the indicator (and hence the colour) for a web text field - webtextfield has ‘indicator’ listed as a property, though there is no corresponding field in the IDE.

I’ve tried
.indicator = Danger
but get the compiler error: Type mismatch: Expected enum WebUIControl.inidicators but got Int32

I’m also drawing a blank when I try autocomplete.
Any pointers as to how to do this in code would be welcom

Thanks
Steve

<name of WebTextField here>.Indicator = WebUIControl.Indicators.Danger