# ParseColor

Parses a color string into a color value.

## Syntax

```typescript
ParseColor(color_string: string): string
```

## Parameters

* `color_string`: `string` - The color string to parse

## Return Value

Returns a `string` representing the color in hex format (#RRGGBB).

## Description

The `ParseColor` method converts various color string formats into a standardized hex color representation. It supports:

1. Named Colors (e.g., 'clrRed', 'clrBlue')
2. RGB Components (e.g., '255,0,0')

The method recognizes a wide range of predefined color names, including:

* Basic colors (clrRed, clrGreen, clrBlue, etc.)
* Extended colors (clrDarkGreen, clrLightBlue, etc.)
* Web colors (clrAliceBlue, clrCornsilk, etc.)

## Example

```typescript
// Using named colors
const redHex = this.api.ParseColor('clrRed') // Returns '#FF0000'
const blueHex = this.api.ParseColor('clrBlue') // Returns '#0000FF'
const greenHex = this.api.ParseColor('clrDarkGreen') // Returns '#006400'

// Using RGB components
const customRed = this.api.ParseColor('255,0,0') // Returns '#FF0000'
const customBlue = this.api.ParseColor('0,0,255') // Returns '#0000FF'
const gray = this.api.ParseColor('128,128,128') // Returns '#808080'
```
