Show / Hide Table of Contents

Class PathGradientFill

Class represents the path gradient fill.

Inheritance
System.Object
FillBase
PathGradientFill
Inherited Members
FillBase.CreateBrush(RectangleF, Single, Single)
FillBase.Deserialize(FRReader, String)
FillBase.FinalizeComponent()
FillBase.InitializeComponent()
FillBase.Draw(FRPaintEventArgs, RectangleF)
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport
Assembly: FastReport.OpenSource.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
Color centerColor

Center color.

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
Color

EdgeColor

Gets or sets the edge color of the gradient.

Declaration
public Color EdgeColor { get; set; }
Property Value
Type Description
Color

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
FillBase.Clone()

CreateBrush(RectangleF)

Creates the GDI+ Brush object.

Declaration
public override Brush CreateBrush(RectangleF rect)
Parameters
Type Name Description
RectangleF rect

Drawing rectangle.

Returns
Type Description
Brush

Brush object.

Overrides
FillBase.CreateBrush(RectangleF)

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
FillBase.Serialize(FRWriter, String, FillBase)
Remarks

This method is for internal use only.

Back to top Generated by DocFX