Class FillBase
Base class for all fills.
Inheritance
System.Object
FillBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport
Assembly: FastReport.OpenSource.dll
Syntax
public abstract class FillBase
Methods
Clone()
Creates exact copy of this fill.
Declaration
public abstract FillBase Clone()
Returns
Type | Description |
---|---|
FillBase | Copy of this object. |
CreateBrush(RectangleF)
Creates the GDI+ Brush object.
Declaration
public abstract Brush CreateBrush(RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | rect | Drawing rectangle. |
Returns
Type | Description |
---|---|
Brush | Brush object. |
CreateBrush(RectangleF, Single, Single)
Creates the GDI+ Brush object with scaling.
Declaration
public virtual Brush CreateBrush(RectangleF rect, float scaleX, float scaleY)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | rect | Drawing rectangle. |
System.Single | scaleX | X scaling coefficient. |
System.Single | scaleY | Y scaling coefficient. |
Returns
Type | Description |
---|---|
Brush | Brush object. |
Deserialize(FRReader, String)
Declaration
public virtual void Deserialize(FRReader reader, string prefix)
Parameters
Type | Name | Description |
---|---|---|
FRReader | reader | |
System.String | prefix |
Draw(FRPaintEventArgs, RectangleF)
Fills the specified rectangle.
Declaration
public virtual void Draw(FRPaintEventArgs e, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Draw event arguments. |
RectangleF | rect | Drawing rectangle. |
FinalizeComponent()
Declaration
public virtual void FinalizeComponent()
InitializeComponent()
Declaration
public virtual void InitializeComponent()
Serialize(FRWriter, String, FillBase)
Serializes the fill.
Declaration
public virtual void Serialize(FRWriter writer, string prefix, FillBase fill)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
System.String | prefix | Name of the fill property. |
FillBase | fill | Fill object to compare with. |
Remarks
This method is for internal use only.