skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FillStyle

Fill style base class

Inheritance
System.Object
StateManagedObject
FillStyle
FillStyleChart
FillStyleMarkedZones
FillStylePlotArea
FillStyleSeries
FillStyleSeriesPoint
FillStyleTitle
Inherited Members
StateManagedObject.IChartingStateManager.LoadViewState(Object)
StateManagedObject.IChartingStateManager.SaveViewState()
StateManagedObject.IChartingStateManager.TrackViewState()
StateManagedObject.CloneState()
StateManagedObject.SetDirty()
StateManagedObject.ToString()
StateManagedObject.ViewStateIgnoresCase
StateManagedObject.IChartingStateManager.IsTrackingViewState
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Charting.Styles
Assembly: Telerik.WinControls.RadChart.dll

Syntax

public class FillStyle : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Constructors

FillStyle()

Create new instance of FillStyle class.

Declaration
public FillStyle()

FillStyle(Color)

Create new instance of FillStyle class.

Declaration
public FillStyle(Color mainColor)
Parameters
System.Drawing.Color mainColor

Main color

FillStyle(Color, Color)

Create new instance of FillStyle class.

Declaration
public FillStyle(Color mainColor, Color secondColor)
Parameters
System.Drawing.Color mainColor

Main color

System.Drawing.Color secondColor

Second color

FillStyle(Color, Color, FillSettings, Boolean, FillType)

Create new instance of FillStyle class.

Declaration
public FillStyle(Color mainColor, Color secondColor, FillSettings fillSettings, bool gammaCorrection, FillType fillType)
Parameters
System.Drawing.Color mainColor

Main color

System.Drawing.Color secondColor

Second color

FillSettings fillSettings

Fill settings

System.Boolean gammaCorrection

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
public FillStyle(Color mainColor, Color secondColor, FillType fillType)
Parameters
System.Drawing.Color mainColor

Main color

System.Drawing.Color secondColor

Second color

FillType fillType

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

FillStyle(Color, FillType)

Create new instance of FillStyle class.

Declaration
public FillStyle(Color mainColor, FillType fillType)
Parameters
System.Drawing.Color mainColor

Main color

FillType fillType

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

FillStyle(Object)

Create new instance of FillStyle class.

Declaration
public FillStyle(object container)
Parameters
System.Object container

Container element

Properties

FillSettings

Gets and sets fill settings

Declaration
[SkinnableProperty]
public virtual FillSettings FillSettings { get; }
Property Value
FillSettings

FillType

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

Declaration
[SkinnableProperty]
public virtual FillType FillType { get; set; }
Property Value
FillType

GammaCorrection

Specifies whether gamma correction should be used

Declaration
[SkinnableProperty]
public bool GammaCorrection { get; set; }
Property Value
System.Boolean

MainColor

Gets and sets the main color of figure background

Declaration
[SkinnableProperty]
public virtual Color MainColor { get; set; }
Property Value
System.Drawing.Color

MainColorOpacity

Gets and sets the main color opacity coefficient

Declaration
public byte MainColorOpacity { get; }
Property Value
System.Byte

SecondColor

Gets and sets the second color of figure background

Declaration
[SkinnableProperty]
public virtual Color SecondColor { get; set; }
Property Value
System.Drawing.Color

SecondColorOpacity

Gets and sets the second color opacity coefficient

Declaration
public byte SecondColorOpacity { get; }
Property Value
System.Byte

Methods

Clone()

Clone of this object

Declaration
public virtual object Clone()
Returns
System.Object

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

Implements
System.ICloneable.Clone()

Equals(Object)

Comparing of two objects

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Object to compare

Returns
System.Boolean

Whether objects are equal or not

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Gets hash code

Declaration
public override int GetHashCode()
Returns
System.Int32

Hash code

Overrides
System.Object.GetHashCode()

LoadViewState(Object)

Load data from ViewState

Declaration
protected override void LoadViewState(object savedState)
Parameters
System.Object savedState

ViewState with data

Overrides
StateManagedObject.LoadViewState(Object)

SaveViewState()

Save data to ViewState

Declaration
protected override object SaveViewState()
Returns
System.Object

Saved data

Overrides
StateManagedObject.SaveViewState()

TrackViewState()

Track ViewState

Declaration
protected override void TrackViewState()
Overrides
StateManagedObject.TrackViewState()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.