Table of Contents

Method TryParseHex

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TryParseHex(string, out int)

Reads a colour written #RRGGBB or RRGGBB.

public static bool TryParseHex(string text, out int rgb)

Parameters

text string

The text.

rgb int

The colour as 0xRRGGBB.

Returns

bool

Whether it read.