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
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class ColorBlend

Defines arrays of elements and positions used for interpolating GradientElement blending in a multicolor gradient.

Inheritance
System.Object
ChartingStateManagedCollection<GradientElement>
ColorBlend
Inherited Members
ChartingStateManagedCollection<GradientElement>.IndexOf(GradientElement)
ChartingStateManagedCollection<GradientElement>.Insert(Int32, GradientElement)
ChartingStateManagedCollection<GradientElement>.RemoveAt(Int32)
ChartingStateManagedCollection<GradientElement>.Add(GradientElement)
ChartingStateManagedCollection<GradientElement>.AddRange(GradientElement[])
ChartingStateManagedCollection<GradientElement>.Clear()
ChartingStateManagedCollection<GradientElement>.Contains(GradientElement)
ChartingStateManagedCollection<GradientElement>.CopyTo(GradientElement[], Int32)
ChartingStateManagedCollection<GradientElement>.Remove(GradientElement)
ChartingStateManagedCollection<GradientElement>.GetEnumerator()
ChartingStateManagedCollection<GradientElement>.IChartingStateManager.LoadViewState(Object)
ChartingStateManagedCollection<GradientElement>.LoadViewState(Object)
ChartingStateManagedCollection<GradientElement>.SaveViewState()
ChartingStateManagedCollection<GradientElement>.IChartingStateManager.SaveViewState()
ChartingStateManagedCollection<GradientElement>.IChartingStateManager.TrackViewState()
ChartingStateManagedCollection<GradientElement>.SetItemDirty(GradientElement)
ChartingStateManagedCollection<GradientElement>.OnInsert(Int32, Object)
ChartingStateManagedCollection<GradientElement>.OnInsertComplete(Int32, Object)
ChartingStateManagedCollection<GradientElement>.OnRemove(Int32, Object)
ChartingStateManagedCollection<GradientElement>.OnRemoveComplete(Int32, Object)
ChartingStateManagedCollection<GradientElement>.OnClear()
ChartingStateManagedCollection<GradientElement>.OnClearComplete()
ChartingStateManagedCollection<GradientElement>.ToString()
ChartingStateManagedCollection<GradientElement>.List
ChartingStateManagedCollection<GradientElement>.Item[Int32]
ChartingStateManagedCollection<GradientElement>.Count
ChartingStateManagedCollection<GradientElement>.IsReadOnly
ChartingStateManagedCollection<GradientElement>.IChartingStateManager.IsTrackingViewState
Namespace: Telerik.Reporting.Charting
Assembly: Telerik.Reporting.dll

Syntax

public class ColorBlend : ChartingStateManagedCollection<GradientElement>, IDeserializableCollection, IList<GradientElement>, ICollection<GradientElement>, IEnumerable<GradientElement>, IChartingStateManager, IList, ICollection, IEnumerable, ICloneable

Constructors

ColorBlend()

Create new instance of ColorBlend class.

Declaration
public ColorBlend()

ColorBlend(Color[])

Create new instance of ColorBlend class.

Declaration
public ColorBlend(Color[] colors)
Parameters
System.Drawing.Color[] colors

Colors to add

ColorBlend(Color[], Object)

Create new instance of ColorBlend class.

Declaration
public ColorBlend(Color[] colors, object containerObject)
Parameters
System.Drawing.Color[] colors

Colors to add to the object

System.Object containerObject

Container element

ColorBlend(Color[], Single[])

Create new instance of ColorBlend class.

Declaration
public ColorBlend(Color[] colors, float[] positions)
Parameters
System.Drawing.Color[] colors

Colors to add to the object

System.Single[] positions

Positions of colors

ColorBlend(Color[], Single[], Object)

Create new instance of ColorBlend class.

Declaration
public ColorBlend(Color[] colors, float[] positions, object containerObject)
Parameters
System.Drawing.Color[] colors

Colors to add to the object.

System.Single[] positions

Positions of colors.

System.Object containerObject

Container element

ColorBlend(Object)

Create new instance of ColorBlend class.

Declaration
public ColorBlend(object containerObject)
Parameters
System.Object containerObject

Container element.

Methods

AddRange(ColorBlend)

Adds a range of elements to the collection.

Declaration
public void AddRange(ColorBlend blend)
Parameters
ColorBlend blend

Object that contains element to add

Clone()

Clone this object.

Declaration
public object Clone()
Returns
System.Object

New instance of ColorBlend class with the same fields as this one.

Equals(Object)

Comparing two objects.

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

Object to compare.

Returns
System.Boolean

Whether objects equal or not

Overrides
System.Object.Equals(System.Object)

GetBrush(RectangleF, Single)

Returns gradient brush

Declaration
public LinearGradientBrush GetBrush(RectangleF rectangle, float angle)
Parameters
System.Drawing.RectangleF rectangle

Rectangle of brush

System.Single angle

Angle of brush.

Returns
System.Drawing.Drawing2D.LinearGradientBrush

Gradient brush

GetColor(Single)

Gets color at specified position.

Declaration
public Color GetColor(float pos)
Parameters
System.Single pos

Position to get color.

Returns
System.Drawing.Color

Color at specified position.

GetColors()

Gets ColorBlend's colors.

Declaration
public Color[] GetColors()
Returns
System.Drawing.Color[]

ColorBlend's colors.

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

GetPositions()

Gets ColorBlend's positions.

Declaration
public float[] GetPositions()
Returns
System.Single[]

ColorBlend's positions.

LoadFrom(ColorBlend)

Load pairs colors\positions from specified object.

Declaration
public void LoadFrom(ColorBlend blend)
Parameters
ColorBlend blend

Object to load from.

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting 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.