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 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    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 GradientFillControl

Provides methods and properties for using the GradientFillControl.

Inheritance
System.Object
ControlBase
GradientFillControl
Inherited Members
ControlBase.GetTemplateChild<T>(String)
ControlBase.GetRequiredTemplateChild<T>(String, Boolean)
Namespace: Telerik.Windows.Controls.Spreadsheet.Controls
Assembly: Telerik.Windows.Controls.Spreadsheet.dll

Syntax

public class GradientFillControl : ControlBase

Constructors

GradientFillControl()

Initializes a new instance of the GradientFillControl class.

Declaration
public GradientFillControl()

GradientFillControl(GradientFill, ThemeColorScheme)

Initializes a new instance of the GradientFillControl class.

Declaration
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.GradientFill gradientFill

The gradient fill as GradientFill value.

Telerik.Documents.Common.Model.ThemeColorScheme colorScheme

The color scheme as ThemeColorScheme value.

GradientFillControl(GradientFill, ThemeColorScheme, Double, Double)

Initializes a new instance of the GradientFillControl class.

Declaration
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme, double width, double height)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.GradientFill gradientFill

The gradient fill.

Telerik.Documents.Common.Model.ThemeColorScheme colorScheme

The color scheme.

System.Double width

The width.

System.Double height

The height.

Fields

Color1Property

The Dependency property Color1Property, specifying the first color of the Gradient.

Declaration
public static readonly DependencyProperty Color1Property
Field Value
System.Windows.DependencyProperty

Color2Property

The Dependency property Color2Property, specifying the second color of the Gradient.

Declaration
public static readonly DependencyProperty Color2Property
Field Value
System.Windows.DependencyProperty

ColorSchemeProperty

The Dependency property ColorSchemeProperty.

Declaration
public static readonly DependencyProperty ColorSchemeProperty
Field Value
System.Windows.DependencyProperty

GradientTypeProperty

The Dependency property GradientTypeProperty.

Declaration
public static readonly DependencyProperty GradientTypeProperty
Field Value
System.Windows.DependencyProperty

Properties

Color1

Gets or sets the first color of the Gradient.

Declaration
public ThemableColor Color1 { get; set; }
Property Value
Telerik.Documents.Common.Model.ThemableColor

The first color of the Gradient.

Color2

Gets or sets the second color of the Gradient.

Declaration
public ThemableColor Color2 { get; set; }
Property Value
Telerik.Documents.Common.Model.ThemableColor

The second color of the Gradient.

ColorScheme

Gets or sets the color scheme.

Declaration
public ThemeColorScheme ColorScheme { get; set; }
Property Value
Telerik.Documents.Common.Model.ThemeColorScheme

The color scheme.

GradientType

Gets or sets the type of the gradient.

Declaration
public GradientType GradientType { get; set; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Model.GradientType

The type of the gradient.

Methods

MeasureOverride(Size)

Called to re-measure a control.

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size availableSize

The maximum available size of the control.

Returns
System.Windows.Size

The size of the control, up to the maximum specified by availableSize.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

Declaration
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML 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.