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 jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Gradient

Represents base class for gradient color.

Inheritance
System.Object
ColorBase
PatternColor
Gradient
LinearGradient
RadialGradient
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
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.

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

System.Windows.Point endPoint

Gradient(Point, Point, IPosition)

Initializes a new instance of the Gradient class.

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

The start point.

System.Windows.Point endPoint

The end point.

IPosition position

The position.

Properties

Background

Gets or sets the background color.

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

The background color.

EndPoint

Gets or sets the end point.

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

The end point.

ExtendAfter

Specifies if the gradient should extends after the end point.

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

True to extend.

ExtendBefore

Specifies if the gradient should extends before the start point.

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

The extend before.

GradientStops

Gets the gradient stops.

Declaration
public GradientStopCollection GradientStops { get; }
Property Value
GradientStopCollection

The gradient stops.

Position

Gets or sets the position.

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

The position.

Overrides
PatternColor.Position

StartPoint

Gets or sets the start point.

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

The start point.

Methods

Equals(ColorBase)

Equalses the specified other.

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

The other.

Returns
System.Boolean

Overrides
ColorBase.Equals(ColorBase)

Was this article helpful?

Tell us how we can improve this article

Skip
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.