RadialMenuControl.Components.RadialMenuButton.SetColors C# (CSharp) Method

SetColors() public method

Allows the use of key/value pairs to set the colors
public SetColors ( Color>.Dictionary colors ) : void
colors Color>.Dictionary Dictionary containing colors in a key/value pair
return void
        public void SetColors(Dictionary<string, Color> colors)
        {
            foreach (var colorVariable in colors)
            {
                if (GetType().GetProperty(colorVariable.Key) != null)
                {
                    var prop = GetType().GetProperty(colorVariable.Key);
                    prop.SetValue(this, colorVariable.Value);
                }
            }
        }