skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    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
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Gradient

Represents the base class for gradient colors that transition between multiple colors.

Inheritance
System.Object
ColorBase
PatternColor
Gradient
LinearGradient
RadialGradient
Inherited Members
ColorBase.Equals(Object)
ColorBase.GetHashCode()
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public abstract class Gradient : PatternColor, IEquatable<ColorBase>, IInstanceIdOwner, IGradient, IPatternColor

Constructors

Gradient(Point, Point)

Initializes a new instance of the Gradient class with the specified start and end points.

Declaration
public Gradient(Point startPoint, Point endPoint)
Parameters
System.Windows.Point startPoint

The starting point of the gradient.

System.Windows.Point endPoint

The ending point of the gradient.

Gradient(Point, Point, IPosition)

Initializes a new instance of the Gradient class with the specified points and position.

Declaration
public Gradient(Point startPoint, Point endPoint, IPosition position)
Parameters
System.Windows.Point startPoint

The starting point of the gradient.

System.Windows.Point endPoint

The ending point of the gradient.

IPosition position

The position transformation matrix for the gradient.

Properties

Background

Gets or sets the background color used when the gradient doesn't cover the entire area.

Declaration
public ColorBase Background { get; set; }
Property Value
ColorBase

The background color, or null if no background color is specified.

EndPoint

Gets or sets the ending point coordinates of the gradient.

Declaration
public Point EndPoint { get; set; }
Property Value
System.Windows.Point

The ending point of the gradient.

ExtendAfter

Gets or sets a value indicating whether the gradient should extend after the end point.

Declaration
public bool ExtendAfter { get; set; }
Property Value
System.Boolean

True if the gradient extends after the end point; otherwise, false.

ExtendBefore

Gets or sets a value indicating whether the gradient should extend before the start point.

Declaration
public bool ExtendBefore { get; set; }
Property Value
System.Boolean

True if the gradient extends before the start point; otherwise, false.

GradientStops

Gets the collection of gradient stops that define color transitions within the gradient.

Declaration
public GradientStopCollection GradientStops { get; }
Property Value
GradientStopCollection

The gradient stops collection.

Position

Gets or sets the position transformation matrix applied to the gradient.

Declaration
public override IPosition Position { get; set; }
Property Value
IPosition

The position transformation matrix.

Overrides
PatternColor.Position

StartPoint

Gets or sets the starting point coordinates of the gradient.

Declaration
public Point StartPoint { get; set; }
Property Value
System.Windows.Point

The starting point of the gradient.

Methods

Equals(ColorBase)

Equals the specified other.

Declaration
public override bool Equals(ColorBase other)
Parameters
ColorBase other

The other.

Returns
System.Boolean

True if the specified gradient is equal to the current gradient; otherwise, false.

Overrides
ColorBase.Equals(ColorBase)
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.