FastColoredTextBoxNS.ExportToRTF.GetColorTableNumber C# (CSharp) 메소드

GetColorTableNumber() 개인적인 메소드

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

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

            return colorTable[color];
        }