FillPrimitive
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
public FillPrimitive()
Fields
public static RadProperty BackColor2Property
public static RadProperty BackColor3Property
public static RadProperty BackColor4Property
public static RadProperty GradientAngleProperty
public static RadProperty GradientPercentage2Property
public static RadProperty GradientPercentageProperty
public static RadProperty GradientStyleProperty
public static RadProperty NumberOfColorsProperty
public static RadProperty PaintUsingParentShapeProperty
Properties
Gets or sets background color. This property is applicable to radial, glass, office glass, gel, and vista gradients.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor2 { get; set; }
Implements:
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor3 { get; set; }
Implements:
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color BackColor4 { get; set; }
Implements:
Gets or sets a value indicating the way element will fill its available size when parent element is calculating element size and location.
public override RadFitToSizeMode FitToSizeMode { get; set; }
Overrides:
Gets or sets gradient angle for linear gradient.
public virtual float GradientAngle { get; set; }
Implements:
Gets or sets GradientPercentage for linear, glass, office glass, gel, vista, and radial gradients.
public virtual float GradientPercentage { get; set; }
Implements:
Gets or sets GradientPercentage for office glass, vista, and radial gradients.
public virtual float GradientPercentage2 { get; set; }
Implements:
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.
public virtual GradientStyles GradientStyle { get; set; }
Implements:
Gets or sets the number of used colors in the gradient effect.
public virtual int NumberOfColors { get; set; }
Implements:
Specifies whether the FillPrimitive should fill the GraphicsPath defined by its Parent.Shape. If false, it will fill its bounding rectangle.
public bool PaintUsingParentShape { get; set; }
protected override bool ShouldPaintUsingParentShape { get; }
Overrides:
Methods
Allows inheritors to provide custom default value.
protected override object GetDefaultValue(RadPropertyValue propVal, object baseDefaultValue)
Overrides:
Gets the IFilter instance that may be used to filter the properties, treated as Stylable for this element.
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.
protected override void InitializeFields()
Overrides:
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Overrides:
Called when a property value has changed, allowing for custom response to property changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property changed event arguments.
Overrides:
Determines whether the property defined by the provided property descriptor should be serialized.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
bool?
Overrides: