ColorName Result

Applies To
Vision Objects: ColorMatch

Description
Returns the name of the color model found to be the best match.

Usage

VGet  Sequence.Object.ColorName [(result)], var
Sequence
Name of a sequence or string variable containing a sequence name.
Object
Name of an object or string variable containing an object name
.
The object must exist in the specified sequence.
var
Integer variable that will contain the value of the property.
result
Optional integer result number from 1 to the NumberOfResults property. If omitted, the result number is the CurrentResult.

Values
A string containing the name of the color model.

Default: Empty string

Remarks
ColorName is the name given to the color model of the best matched model.

The ColorIndex result is the index of the matched model.

The name of a color model can be changed at design time from the [Vision Guide] window by clicking the [Teach] button for the object and changing the color model names. The model name can also be changed by setting the ModelName property from SPEL+ at runtime.

See Also
ColorMatch Object, ColorIndex Result, ColorValue Result, ModelName Property