Class GradientFillControl
Provides methods and properties for using the GradientFillControl.
Inherited Members
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.Windows.Documents.Spreadsheet.Theming.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.Windows.Documents.Spreadsheet.Theming.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.Windows.Documents.Spreadsheet.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.Windows.Documents.Spreadsheet.Model.ThemableColor
The second color of the Gradient. |
ColorScheme
Gets or sets the color scheme.
Declaration
public ThemeColorScheme ColorScheme { get; set; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Theming.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 |
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. |