Class PathGradientFill
Class represents the path gradient fill.
Inherited Members
Namespace: FastReport
Assembly: FastReport.dll
Syntax
public class PathGradientFill : FillBase
Constructors
PathGradientFill()
Initializes the PathGradientFill class with default settings.
Declaration
public PathGradientFill()
PathGradientFill(Color, Color, PathGradientStyle)
Initializes the PathGradientFill class with center, edge colors and style.
Declaration
public PathGradientFill(Color centerColor, Color edgeColor, PathGradientStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Color | centerColor | Center color. |
| System.Drawing.Color | edgeColor | Edge color. |
| PathGradientStyle | style | Gradient style. |
Properties
CenterColor
Gets or sets the center color of the gradient.
Declaration
public Color CenterColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color |
EdgeColor
Gets or sets the edge color of the gradient.
Declaration
public Color EdgeColor { 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 style of the gradient.
Declaration
public PathGradientStyle Style { get; set; }
Property Value
| Type | Description |
|---|---|
| PathGradientStyle |
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.