 "setShapeColorByName"
"setShapeColorByName"
    
    Sets a shape color by the color name.
Synopsis
void setShapeColorByName(string strLayer, string strField, string strShape,
                string strColor);
Parameters
| Parameter | Description | 
|---|---|
| strLayer | The layer of the shape. | 
| strField | The shape field of the layer. | 
| strShape | The name of the shape whose color should be set. | 
| strColor | The color that should be set. | 
Description
This function enables it to set the fill color by its name for a shape. In addition to the predefined standard color names, it's possible to set user-defined colors.
 Example
 Example
Sets the color of shape "MYRECT" to the user-defined color "MyColor1".
main()
{
  GisViewer_ewo1.setShapeColorByName( "SHAPES", "NAME", "MYRECT", "MyColor1");
}Assignment
GIS Viewer
