ColorDescriptorFromColor method (WinStudio scripts)

Applies To

IWSApplication interface

Definition

Takes a Color data type as input and returns the value as a color descriptor (RGB) string.

Syntax

object.ColorDescriptorFromColor( Color )

  Part   Description
object Required. Name of a valid application object.

Remarks

The return value is a string containing the RGB code value of the object's color. This RGB string consists of a series of three comma-separated integers, each in the range 0-255. For example, the RGB code for a deep purple color might be rendered as (158,44,186).

This method must be used in conjunction with another method, such as SetGridRowColColor, SetGridRowColColorByColumnName, or any other method that requires a color descriptor as input.

When using this method, you must include the following comment above the Imports section in any global or form script:

'//<Ref>System.Drawing.dll</Ref>

Example

Dim backColor As Color
Dim BackColorDesc As String
BackColorDesc = Application.ColorDescriptorFromColor( Color.Aquamarine )
Related topics