Class FillPrimitive
Represents a filling that is drawn on the screen.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Primitives
Assembly: Telerik.WinControls.dll
Syntax
public class FillPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Constructors
FillPrimitive()
Declaration
public FillPrimitive()
Fields
BackColor2Property
BackColor3Property
BackColor4Property
GradientAngleProperty
GradientPercentage2Property
GradientPercentageProperty
GradientStyleProperty
NumberOfColorsProperty
PaintUsingParentShapeProperty
Properties
BackColor2
Gets or sets background color. This property is applicable to radial, glass, office glass, gel, and vista gradients.
Declaration
[RadPropertyDefaultValue("BackColor2", typeof(FillPrimitive))]
public virtual Color BackColor2 { get; set; }
Property Value
System.Drawing.Color
|
Implements
BackColor3
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
Declaration
[RadPropertyDefaultValue("BackColor3", typeof(FillPrimitive))]
public virtual Color BackColor3 { get; set; }
Property Value
System.Drawing.Color
|
Implements
BackColor4
Gets or sets background color. This property is applicable to radial, glass, office glass, and vista gradients.
Declaration
[RadPropertyDefaultValue("BackColor4", typeof(FillPrimitive))]
public virtual Color BackColor4 { get; set; }
Property Value
System.Drawing.Color
|
Implements
FitToSizeMode
Declaration
public override RadFitToSizeMode FitToSizeMode { get; set; }
Property Value
RadFitToSizeMode
|
Overrides
GradientAngle
Gets or sets gradient angle for linear gradient.
Declaration
[RadPropertyDefaultValue("GradientAngle", typeof(FillPrimitive))]
public virtual float GradientAngle { get; set; }
Property Value
System.Single
|
Implements
GradientPercentage
Gets or sets GradientPercentage for linear, glass, office glass, gel, vista, and radial gradients.
Declaration
[RadPropertyDefaultValue("GradientPercentage", typeof(FillPrimitive))]
public virtual float GradientPercentage { get; set; }
Property Value
System.Single
|
Implements
GradientPercentage2
Gets or sets GradientPercentage for office glass, vista, and radial gradients.
Declaration
[RadPropertyDefaultValue("GradientPercentage2", typeof(FillPrimitive))]
public virtual float GradientPercentage2 { get; set; }
Property Value
System.Single
|
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
[RadPropertyDefaultValue("GradientStyle", typeof(FillPrimitive))]
public virtual GradientStyles GradientStyle { get; set; }
Property Value
GradientStyles
|
Implements
NumberOfColors
Gets or sets the number of used colors in the gradient effect.
Declaration
[RadPropertyDefaultValue("NumberOfColors", typeof(FillPrimitive))]
public virtual int NumberOfColors { get; set; }
Property Value
System.Int32
|
Implements
PaintUsingParentShape
Specifies whether the FillPrimitive should fill the GraphicsPath defined by its Parent.Shape. If false, it will fill its bounding rectangle.
Declaration
[RadPropertyDefaultValue("PaintUsingParentShape", typeof(FillPrimitive))]
public bool PaintUsingParentShape { get; set; }
Property Value
System.Boolean
|
ShouldPaintUsingParentShape
Declaration
protected override bool ShouldPaintUsingParentShape { get; }
Property Value
System.Boolean
|
Overrides
ShouldUsePaintBufferState
This property is used internally!
Declaration
public bool ShouldUsePaintBufferState { get; set; }
Property Value
System.Boolean
|
Methods
GetDefaultValue(RadPropertyValue, Object)
Declaration
protected override object GetDefaultValue(RadPropertyValue propVal, object baseDefaultValue)
Parameters
RadPropertyValue
propVal
|
System.Object
baseDefaultValue
|
Returns
System.Object
|
Overrides
GetStylablePropertiesFilter()
InitializeFields()
OnBoundsChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
PaintPrimitive(IGraphics, Single, SizeF)
Draws the primitive on the screen.
Declaration
public override void PaintPrimitive(IGraphics g, float angle, SizeF scale)
Parameters
IGraphics
g
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
ShouldSerializeProperty(PropertyDescriptor)
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
|
Returns
System.Nullable<System.Boolean>
|
Overrides
ShouldUsePaintBuffer()
Declaration
protected virtual bool ShouldUsePaintBuffer()
Returns
System.Boolean
|
Explicit Interface Implementations
IPrimitiveElement.BorderThickness
Declaration
float IPrimitiveElement.BorderThickness { get; }
Returns
System.Single
|
Implements
IPrimitiveElement.GetExactPaintingRectangle(Single, SizeF)
Declaration
RectangleF IPrimitiveElement.GetExactPaintingRectangle(float angle, SizeF scale)
Parameters
System.Single
angle
|
System.Drawing.SizeF
scale
|
Returns
System.Drawing.RectangleF
|
Implements
IPrimitiveElement.GetPaintRectangle(Single, Single, SizeF)
Declaration
RectangleF IPrimitiveElement.GetPaintRectangle(float left, float angle, SizeF scale)
Parameters
System.Single
left
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Returns
System.Drawing.RectangleF
|
Implements
IPrimitiveElement.IsDesignMode
Declaration
bool IPrimitiveElement.IsDesignMode { get; }
Returns
System.Boolean
|
Implements
IPrimitiveElement.ShouldUsePaintBuffer()
Declaration
bool IPrimitiveElement.ShouldUsePaintBuffer()
Returns
System.Boolean
|