Class HatchFill
Class represents the hatch fill.
Inherited Members
Namespace: FastReport
Assembly: FastReport.dll
Syntax
public class HatchFill : FillBase
  Constructors
HatchFill()
Initializes the HatchFill class with default settings.
Declaration
public HatchFill()
  HatchFill(Color, Color, HatchStyle)
Initializes the HatchFill class with foreground, background colors and hatch style.
Declaration
public HatchFill(Color foreColor, Color backColor, HatchStyle style)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Color | foreColor | Foreground color.  | 
      
| System.Drawing.Color | backColor | Background color.  | 
      
| System.Drawing.Drawing2D.HatchStyle | style | Hatch style.  | 
      
Properties
BackColor
Gets or sets the background color.
Declaration
public Color BackColor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | 
ForeColor
Gets or sets the foreground color.
Declaration
public Color ForeColor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | 
IsTransparent
Declaration
public override bool IsTransparent { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
Style
Gets or sets the hatch style.
Declaration
public HatchStyle Style { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Drawing2D.HatchStyle | 
Methods
Clone()
Creates exact copy of this fill.
Declaration
public override FillBase Clone()
  Returns
| Type | Description | 
|---|---|
| FillBase | Copy of this object.  | 
      
Overrides
CreateBrush(RectangleF)
Creates the GDI+ Brush object.
Declaration
public override Brush CreateBrush(RectangleF rect)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.RectangleF | rect | Drawing rectangle.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Drawing.Brush | Brush object.  | 
      
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
System.Object.Equals(System.Object)
  
  GetHashCode()
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
System.Object.GetHashCode()
  
  Serialize(FRWriter, String, FillBase)
Serializes the fill.
Declaration
public override 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.  | 
      
Overrides
Remarks
This method is for internal use only.