Syncfusion.Drawing Namespace : BrushInfo Class

BrushInfo Class

Holds information on how to fill the background of a window or grid cell.
Object Model
BrushInfo ClassBrushInfo ClassBrushInfoColorArrayList Class
<DesignerSerializerAttribute(Syncfusion.Drawing.BrushInfoCodeDomSerializer, System.ComponentModel.Design.Serialization.CodeDomSerializer)>
Public NotInheritable Class BrushInfo 
Dim instance As BrushInfo
[DesignerSerializer(Syncfusion.Drawing.BrushInfoCodeDomSerializer, System.ComponentModel.Design.Serialization.CodeDomSerializer)]
public sealed class BrushInfo 
BrushInfo lets you specify a solid backcolor, gradient or pattern style with both back and forecolor.

This information can be persisted with serialization.

You can also convert the information to a string and recreate it from a string.

BrushInfo is immutable (just like System.String). You cannot change its values. Instead you have to create a new BrushInfo object.

BrushInfo can also be persisted into code when used as a property in a component designer.

BrushPaint.FillRectangle shows how to fill a rectangle using BrushInfo information.

Inheritance Hierarchy



Syncfusion.Shared.Base: 18.2460.0.44

See Also