Class PatternFillControl
Provides methods and properties for using the PatternFillControl.
Inherited Members
Namespace: Telerik.Windows.Controls.Spreadsheet.Controls
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class PatternFillControl : ControlBase
Constructors
PatternFillControl()
PatternFillControl(PatternFill, ThemeColorScheme)
Initializes a new instance of the PatternFillControl class.
Declaration
public PatternFillControl(PatternFill patternFill, ThemeColorScheme colorScheme)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.PatternFill
patternFill
The pattern fill as PatternFill value. |
Telerik.Windows.Documents.Spreadsheet.Theming.ThemeColorScheme
colorScheme
The color scheme as ThemeColorScheme value. |
Fields
BackgroundColorProperty
The Dependency property BackgroundColorProperty.
Declaration
public static readonly DependencyProperty BackgroundColorProperty
Field Value
System.Windows.DependencyProperty
|
ColorSchemeProperty
The Dependency property ColorSchemeProperty.
Declaration
public static readonly DependencyProperty ColorSchemeProperty
Field Value
System.Windows.DependencyProperty
|
PatternColorProperty
The Dependency property PatternColorProperty.
Declaration
public static readonly DependencyProperty PatternColorProperty
Field Value
System.Windows.DependencyProperty
|
PatternTypeProperty
The Dependency property PatternTypeProperty.
Declaration
public static readonly DependencyProperty PatternTypeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
BackgroundColor
Gets or sets the color of the background.
Declaration
public ThemableColor BackgroundColor { get; set; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Model.ThemableColor
The color of the background. |
ColorScheme
Gets or sets the color scheme.
Declaration
public ThemeColorScheme ColorScheme { get; set; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Theming.ThemeColorScheme
The color scheme. |
PatternColor
Gets or sets the color of the pattern.
Declaration
public ThemableColor PatternColor { get; set; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Model.ThemableColor
The color of the pattern. |
PatternType
Gets or sets the type of the pattern.
Declaration
public PatternType PatternType { get; set; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Model.PatternType
The type of the pattern. |
Methods
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.Windows.FrameworkElement-derived class.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size
availableSize
The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
System.Windows.Size
The size that this element determines it needs during layout, based on its calculations of child element sizes. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
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. |
SetClipping(IEnumerable<Rect>)
Sets the clipping of the pattern fill.
Declaration
public void SetClipping(IEnumerable<Rect> rectangles)
Parameters
System.Collections.Generic.IEnumerable<System.Windows.Rect>
rectangles
The rectangles specifying the clipping. |
SetClipping(Rect)
Sets the clipping of the pattern fill.
Declaration
public void SetClipping(Rect rect)
Parameters
System.Windows.Rect
rect
The rectangle specifying the clipping. |