Syncfusion.Shared.Base
Members 


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
Syntax
'Declaration
 
<ImmutableObjectAttribute(True)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<TypeConverterAttribute(Syncfusion.Drawing.BrushInfoConverter)>
<DesignerSerializerAttribute(Syncfusion.Drawing.BrushInfoCodeDomSerializer, System.ComponentModel.Design.Serialization.CodeDomSerializer)>
<SerializableAttribute()>
Public NotInheritable Class BrushInfo 
'Usage
 
Dim instance As BrushInfo
[ImmutableObject(true)]
[RefreshProperties(RefreshProperties.Repaint)]
[TypeConverter(Syncfusion.Drawing.BrushInfoConverter)]
[DesignerSerializer(Syncfusion.Drawing.BrushInfoCodeDomSerializer, System.ComponentModel.Design.Serialization.CodeDomSerializer)]
[Serializable()]
public sealed class BrushInfo 
Remarks
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

System.Object
   Syncfusion.Drawing.BrushInfo

AssemblyVersion

Syncfusion.Shared.Base: 17.3460.0.26

See Also