Fill GetUniformFill() { Fill result = null; //there are several ways to create a solid fills. //The following methods give the same result //method 1 result = Fills.Red; //method 2 result = new Fill(Colors.Red); //method 3 ColorPaint paint = new ColorPaint(Colors.Red); result = new Fill(paint); return(result); }
/// <summary> /// Create a new uniform color fill with paint is a ColorPaint /// </summary> public Fill(Color color) { Paint = new ColorPaint(color); }