Class
FillStyle

Fill style base class

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public class FillStyle : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectFillStyle

Derived Classes: FillStyleChartFillStyleMarkedZonesFillStylePlotAreaFillStyleSeriesFillStyleSeriesPointFillStyleTitle

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members StateManagedObject.CloneState()StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase

Constructors

FillStyle()

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle()

FillStyle(Color)

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle(Color mainColor)

Parameters

mainColor

Color

Main color

FillStyle(Color, Color)

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle(Color mainColor, Color secondColor)

Parameters

mainColor

Color

Main color

secondColor

Color

Second color

FillStyle(Color, Color, FillSettings, bool, FillType)

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle(Color mainColor, Color secondColor, FillSettings fillSettings, bool gammaCorrection, FillType fillType)

Parameters

mainColor

Color

Main color

secondColor

Color

Second color

fillSettings

FillSettings

Fill settings

gammaCorrection

bool

Specifies whether gamma correction should be used

fillType

FillType

One of FillType values(Solid, Gradient, ComplexGradient, Image,Hatch)

FillStyle(Color, Color, FillType)

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle(Color mainColor, Color secondColor, FillType fillType)

Parameters

mainColor

Color

Main color

secondColor

Color

Second color

fillType

FillType

One of FillType values(Solid, Gradient, ComplexGradient, Image,Hatch)

FillStyle(Color, FillType)

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle(Color mainColor, FillType fillType)

Parameters

mainColor

Color

Main color

fillType

FillType

One of FillType values(Solid, Gradient, ComplexGradient, Image,Hatch)

FillStyle(object)

Create new instance of FillStyle class.

Declaration

cs-api-definition
public FillStyle(object container)

Parameters

container

object

Container element

Properties

FillSettings

Gets and sets fill settings

Declaration

cs-api-definition
[Browsable(true)]
[SkinnableProperty]
public virtual FillSettings FillSettings { get; }

Property Value

FillSettings

FillType

Specifies which of fill styles (Hatch, Solid, Image, Gradient) should be used

Declaration

cs-api-definition
[SkinnableProperty]
public virtual FillType FillType { get; set; }

Property Value

FillType

GammaCorrection

Specifies whether gamma correction should be used

Declaration

cs-api-definition
[SkinnableProperty]
public bool GammaCorrection { get; set; }

Property Value

bool

MainColor

Gets and sets the main color of figure background

Declaration

cs-api-definition
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public virtual Color MainColor { get; set; }

Property Value

Color

MainColorOpacity

Gets and sets the main color opacity coefficient

Declaration

cs-api-definition
[Browsable(false)]
public byte MainColorOpacity { get; }

Property Value

byte

SecondColor

Gets and sets the second color of figure background

Declaration

cs-api-definition
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public virtual Color SecondColor { get; set; }

Property Value

Color

SecondColorOpacity

Gets and sets the second color opacity coefficient

Declaration

cs-api-definition
[Browsable(false)]
public byte SecondColorOpacity { get; }

Property Value

byte

Methods

Clone()

Clone of this object

Declaration

cs-api-definition
public virtual object Clone()

Returns

object

New instance of FillStyle class with the same fields as this object

Implements ICloneable.Clone()

Equals(object)

Comparing of two objects

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Object to compare

Returns

bool

Whether objects are equal or not

Overrides object.Equals(object)

GetHashCode()

Gets hash code

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Hash code

Overrides object.GetHashCode()

LoadViewState(object)

Load data from ViewState

Declaration

cs-api-definition
protected override void LoadViewState(object savedState)

Parameters

savedState

object

ViewState with data

Overrides StateManagedObject.LoadViewState(object)

SaveViewState()

Save data to ViewState

Declaration

cs-api-definition
protected override object SaveViewState()

Returns

object

Saved data

Overrides StateManagedObject.SaveViewState()

TrackViewState()

Track ViewState

Declaration

cs-api-definition
protected override void TrackViewState()

Overrides StateManagedObject.TrackViewState()