API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetColor method
Gets Color
Syntax:
Function GetColor(ByRef Red As Long, ByRef Green As Long, ByRef Blue As Long) As Boolean
Parameters:
Name Type Description
Red
Long
Green
Long
Blue
Long
Remarks:
The GetColor method displays a standard Windows Color dialog box and returns color setting values from the RGB color model (Red, Green, Blue).
Examples:
Here is a code example:
GETCOLOR MyRed%, MyGreen%, MyBlue%