public override string ToString() { string result = "Fill " + FillColor.ToString(); if (Mode != FillMode.Solid) { result += " " + Mode.ToString() + " " + GradientColor.ToString(); } return(result); }