RtfDomParser.RTFColorTable.GetColor C# (CSharp) Method

GetColor() public method

get color at special index , if index out of range , return default color
public GetColor ( int index, System DefaultValue ) : System.Drawing.Color
index int index
DefaultValue System default value
return System.Drawing.Color
        public System.Drawing.Color GetColor( int index , System.Drawing.Color DefaultValue )
        {
            index -- ;
            if (index >= 0 && index < myItems.Count)
            {
                return (System.Drawing.Color)myItems[index];
            }
            else
            {
                return DefaultValue;
            }
        }