Class
GradientFillControl

Provides methods and properties for using the GradientFillControl.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class GradientFillControl : ControlBase

Inheritance: objectControlBaseGradientFillControl

Inherited Members ControlBase.GetTemplateChild<T>(string)ControlBase.GetRequiredTemplateChild<T>(string, bool)

Constructors

GradientFillControl()

Initializes a new instance of the GradientFillControl class.

Declaration

cs-api-definition
public GradientFillControl()

GradientFillControl(GradientFill, ThemeColorScheme)

Initializes a new instance of the GradientFillControl class.

Declaration

cs-api-definition
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme)

Parameters

gradientFill

GradientFill

The gradient fill as GradientFill value.

colorScheme

ThemeColorScheme

The color scheme as ThemeColorScheme value.

GradientFillControl(GradientFill, ThemeColorScheme, double, double)

Initializes a new instance of the GradientFillControl class.

Declaration

cs-api-definition
public GradientFillControl(GradientFill gradientFill, ThemeColorScheme colorScheme, double width, double height)

Parameters

gradientFill

GradientFill

The gradient fill.

colorScheme

ThemeColorScheme

The color scheme.

width

double

The width.

height

double

The height.

Fields

Color1Property

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

Declaration

cs-api-definition
public static readonly DependencyProperty Color1Property

Field Value

DependencyProperty

Color2Property

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

Declaration

cs-api-definition
public static readonly DependencyProperty Color2Property

Field Value

DependencyProperty

ColorSchemeProperty

The Dependency property ColorSchemeProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty ColorSchemeProperty

Field Value

DependencyProperty

GradientTypeProperty

The Dependency property GradientTypeProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty GradientTypeProperty

Field Value

DependencyProperty

Properties

Color1

Gets or sets the first color of the Gradient.

Declaration

cs-api-definition
public ThemableColor Color1 { get; set; }

Property Value

ThemableColor

The first color of the Gradient.

Color2

Gets or sets the second color of the Gradient.

Declaration

cs-api-definition
public ThemableColor Color2 { get; set; }

Property Value

ThemableColor

The second color of the Gradient.

ColorScheme

Gets or sets the color scheme.

Declaration

cs-api-definition
public ThemeColorScheme ColorScheme { get; set; }

Property Value

ThemeColorScheme

The color scheme.

GradientType

Gets or sets the type of the gradient.

Declaration

cs-api-definition
public GradientType GradientType { get; set; }

Property Value

GradientType

The type of the gradient.

Methods

MeasureOverride(Size)

Called to re-measure a control.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The maximum available size of the control.

Returns

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 .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.