New to Telerik ReportingStart a free 30-day trial

Fill style base class

Definition

Namespace:Telerik.Reporting.Charting.Styles

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class FillStyle : StateManagedObject, IChartingStateManagedItem, IChartingStateManager

Inheritance: objectStateManagedObjectFillStyle

Derived Classes: FillStyleChartFillStyleMarkedZonesFillStylePlotAreaFillStyleSeriesFillStyleSeriesPointFillStyleTitle...

Implements: IChartingStateManagedItemIChartingStateManager

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

Constructors

Create new instance of FillStyle class.

C#
public FillStyle()

Create new instance of FillStyle class.

C#
public FillStyle(Color mainColor, Color secondColor, FillSettings fillSettings, bool gammaCorrection, FillType fillType)
Parameters:mainColorColor

Main color

secondColorColor

Second color

fillSettingsFillSettings

Fill settings

gammaCorrectionbool

Specifies whether gamma correction should be used

fillTypeFillType

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

Create new instance of FillStyle class.

C#
public FillStyle(Color mainColor, Color secondColor, FillType fillType)
Parameters:mainColorColor

Main color

secondColorColor

Second color

fillTypeFillType

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

Create new instance of FillStyle class.

C#
public FillStyle(Color mainColor, Color secondColor)
Parameters:mainColorColor

Main color

secondColorColor

Second color

Create new instance of FillStyle class.

C#
public FillStyle(Color mainColor, FillType fillType)
Parameters:mainColorColor

Main color

fillTypeFillType

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

Create new instance of FillStyle class.

C#
public FillStyle(Color mainColor)
Parameters:mainColorColor

Main color

Create new instance of FillStyle class.

C#
public FillStyle(object container)
Parameters:containerobject

Container element

Properties

Gets and sets fill settings

C#
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public virtual FillSettings FillSettings { get; }

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

C#
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual FillType FillType { get; set; }

Specifies whether gamma correction should be used

C#
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public bool GammaCorrection { get; set; }

Gets and sets the main color of figure background

C#
[TypeConverter(typeof(ColorConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual Color MainColor { get; set; }

Gets and sets the main color opacity coefficient

C#
[Browsable(false)]
public byte MainColorOpacity { get; }

Gets and sets the second color of figure background

C#
[TypeConverter(typeof(ColorConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[SkinnableProperty]
public virtual Color SecondColor { get; set; }

Gets and sets the second color opacity coefficient

C#
[Browsable(false)]
public byte SecondColorOpacity { get; }

Methods

Clone()

object

Clone of this object

C#
public virtual object Clone()
Returns:

object

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

Releases unmanaged and - optionally - managed resources

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides: StateManagedObject.Dispose(bool)

Comparing of two objects

C#
public override bool Equals(object obj)
Parameters:objobject

Object to compare

Returns:

bool

Whether objects are equal or not

Overrides: object.Equals(object)

Gets hash code

C#
public override int GetHashCode()
Returns:

int

Hash code

Overrides: object.GetHashCode()

Load data from ViewState

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

ViewState with data

Overrides: StateManagedObject.LoadViewState(object)

Save data to ViewState

C#
protected override object SaveViewState()
Returns:

object

Saved data

Overrides: StateManagedObject.SaveViewState()

Track ViewState

C#
protected override void TrackViewState()

Overrides: StateManagedObject.TrackViewState()