Method WithColor
WithColor(Int32)
Sets the desired background color. The default is transparent.
Declaration
public Rectangle WithColor(int color32)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | color32 | The color as a 32-bit ARGB value. |
Returns
Type | Description |
---|---|
Rectangle | The rectangle. |
WithColor(Color)
Sets the desired background color. The default is transparent.
Declaration
public Rectangle WithColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | The background color. |
Returns
Type | Description |
---|---|
Rectangle | The rectangle. |