Class
PatternFillControl

Provides methods and properties for using the PatternFillControl.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class PatternFillControl : ControlBase

Inheritance: objectControlBasePatternFillControl

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

Constructors

PatternFillControl()

Initializes a new instance of the PatternFillControl class.

Declaration

cs-api-definition
public PatternFillControl()

PatternFillControl(PatternType, Color, Color)

Initializes a new instance of the PatternFillControl class.

Declaration

cs-api-definition
public PatternFillControl(PatternType patternType, Color backgroundColor, Color patternColor)

Parameters

patternType

PatternType

backgroundColor

Color

patternColor

Color

Fields

BackgroundColorProperty

The Dependency property BackgroundColorProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty BackgroundColorProperty

Field Value

DependencyProperty

PatternColorProperty

The Dependency property PatternColorProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty PatternColorProperty

Field Value

DependencyProperty

PatternTypeProperty

The Dependency property PatternTypeProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty PatternTypeProperty

Field Value

DependencyProperty

Properties

BackgroundColor

Gets or sets the color of the background.

Declaration

cs-api-definition
public Color BackgroundColor { get; set; }

Property Value

Color

The color of the background.

PatternColor

Gets or sets the color of the pattern.

Declaration

cs-api-definition
public Color PatternColor { get; set; }

Property Value

Color

The color of the pattern.

PatternType

Gets or sets the type of the pattern.

Declaration

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

Property Value

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 FrameworkElement-derived class.

Declaration

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

Parameters

constraint

Size

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

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 . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

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.