FastColoredTextBoxNS.ExportToRTF.GetColorTableNumber C# (CSharp) Method

GetColorTableNumber() private method

private GetColorTableNumber ( Color color ) : int
color System.Drawing.Color
return int
        private int GetColorTableNumber(Color color)
        {
            if (color.A == 0)
                return -1;

            if (!colorTable.ContainsKey(color))
                colorTable[color] = colorTable.Count + 1;

            return colorTable[color];
        }