[]
Class that encapsulates Brush objects used to paint element backgrounds. It exposes properties that can be used to create and serialize SolidBrush, LinearGradientBrush, and PathGradientBrush objects.
public class BackgroundBrushProvider : IBrushProvider
| Name | Description |
|---|---|
| BackgroundBrushProvider() |
| Name | Description |
|---|---|
| BackColor | Gets or sets the main color (used when GradientMode is set to None). |
| Blend | Gets or sets the Blend used to create the gradient. |
| Brush | Gets or sets a Brush object that may be something other than a SolidBrush. |
| Center | Gets or sets the PointF that represents the center of a radial gradient. |
| DisposeBrushAfterUse | Gets a value indicating if the brush should be disposed after use. |
| GammaCorrection | Gets or sets whether gamma correction is applied to the gradient. |
| GradientColor | Gets or sets the secondary color (used when GradientMode is set to a value other than None). |
| GradientMode | Gets or sets the GradientMode for this BackgroundBrushProvider. |
| InterpolationColors | Gets or sets a ColorBlend that defines a multicolor gradient. |
| Name | Description |
|---|---|
| Clone() | Gets a clone of this BackgroundBrushProvider. |
| GetBrush(Rectangle) | Gets an updated Brush that can be used to fill a given Rectangle. |
| GetBrushColor() | Returns a background color for hosted controls that don't support gradients. |