ClassFillPrimitive
Represents a primitive element that renders background fills and gradients.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class FillPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFillPrimitive
Derived Classes:
Implements:
Inherited Members
Constructors
FillPrimitive()
Declaration
public FillPrimitive()
Fields
GradientAngleProperty
Declaration
public static RadProperty GradientAngleProperty
Field Value
GradientPercentage2Property
Declaration
public static RadProperty GradientPercentage2Property
Field Value
GradientPercentageProperty
Declaration
public static RadProperty GradientPercentageProperty
Field Value
GradientStyleProperty
Declaration
public static RadProperty GradientStyleProperty
Field Value
NumberOfColorsProperty
Declaration
public static RadProperty NumberOfColorsProperty
Field Value
PaintUsingParentShapeProperty
Declaration
public static RadProperty PaintUsingParentShapeProperty
Field Value
Properties
BackColor2
Gets or sets background color. This property is applicable to radial, glass, office glass, gel, and vista gradients.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor2 { get; set; }
Property Value
Implements
BackColor3
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor3 { get; set; }
Property Value
Implements
BackColor4
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor4 { get; set; }
Property Value
Implements
FitToSizeMode
Gets or sets a value indicating the way element will fill its available size when parent element is calculating element size and location.
Declaration
public override RadFitToSizeMode FitToSizeMode { get; set; }
Property Value
Overrides
GradientAngle
Gets or sets gradient angle for linear gradient.
Declaration
public virtual float GradientAngle { get; set; }
Property Value
Implements
GradientPercentage
Gets or sets GradientPercentage for linear, glass, office glass, gel, vista, and radial gradients.
Declaration
public virtual float GradientPercentage { get; set; }
Property Value
Implements
GradientPercentage2
Gets or sets GradientPercentage for office glass, vista, and radial gradients.
Declaration
public virtual float GradientPercentage2 { get; set; }
Property Value
Implements
GradientStyle
Gets and sets the gradient style. The possible values are defined in the gradient style enumeration: solid, linear, radial, glass, office glass, gel, and vista.
Declaration
public virtual GradientStyles GradientStyle { get; set; }
Property Value
Implements
NumberOfColors
Gets or sets the number of used colors in the gradient effect.
Declaration
public virtual int NumberOfColors { get; set; }
Property Value
Implements
PaintUsingParentShape
Specifies whether the FillPrimitive should fill the GraphicsPath defined by its Parent.Shape. If false, it will fill its bounding rectangle.
ShouldPaintUsingParentShape
Declaration
protected override bool ShouldPaintUsingParentShape { get; }
Property Value
Overrides
Methods
GetDefaultValue(RadPropertyValue, object)
Allows inheritors to provide custom default value.
Declaration
protected override object GetDefaultValue(RadPropertyValue propVal, object baseDefaultValue)
Parameters
propVal
baseDefaultValue
Returns
Overrides
GetStylablePropertiesFilter()
Gets the IFilter instance that may be used to filter the properties, treated as Stylable for this element.
Declaration
public override Filter GetStylablePropertiesFilter()
Returns
Overrides
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
OnBoundsChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Parameters
e
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, allowing for custom response to property changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
PaintPrimitive(IGraphics, float, SizeF)
Draws the primitive on the screen.
ShouldSerializeProperty(PropertyDescriptor)
Determines whether the property defined by the provided property descriptor should be serialized.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
property
Returns
bool?
Overrides