ProgressBarPrimitive
Represents a primitive element that renders progress bars with support for various styles, orientations, and customization options.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class ProgressBarPrimitive : FillPrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFillPrimitiveProgressBarPrimitive...
Implements:
Inherited Members
Constructors
public ProgressBarPrimitive()
Fields
public static RadProperty DashProperty
public static RadProperty HatchProperty
public static RadProperty MaximumProperty
public static RadProperty MinimumProperty
public static RadProperty ProgressOrientationProperty
public static RadProperty SeparatorColorProperty1
public static RadProperty SeparatorColorProperty2
public static RadProperty SeparatorWidthProperty
public static RadProperty StepProperty
public static RadProperty StepWidthProperty
public static RadProperty SweepAngleProperty
public static RadProperty ValueProperty1
public static RadProperty ValueProperty2
Properties
Indicates whether the progress bar style is dash. If both dash and hash are true, hatch style is chosen.
public virtual bool Dash { get; set; }
Gets or sets a value indicating whether the progress bar has an associated image.
public bool HasImage { get; set; }
true if the progress bar displays an image; otherwise, false.
When set to true, this property indicates that the progress bar should consider
image rendering in its layout and painting operations. This affects how the progress
bar calculates its visual representation and may influence spacing and alignment.
Indicates whether the progress bar style is hatch. When true, the style is Hatch. When both dash and hatch are true the style is hatch.
public virtual bool Hatch { get; set; }
Gets or sets progress bar orientation. Possible values are indicates in ProgressOrientaion enumeration: up, left, bottom, and right.
public virtual ProgressOrientation Orientation { get; set; }
Gets or sets the first color that is used in gradient effect.
public virtual Color SeparatorColor1 { get; set; }
Gets or sets the second color that is used in gradient effect.
public virtual Color SeparatorColor2 { get; set; }
Gets or sets separators width in pixels.
public virtual int SeparatorWidth { get; set; }
Gets or sets the step value used for discrete progress increments.
public virtual int Step { get; set; }
An integer value representing the increment amount for step-based progress updates.
The step value determines the amount by which the progress value increases when using step-based progress updates. This is useful for operations that complete in discrete, measurable increments rather than continuous progress.
Gets or sets the step width in pixels between separators.
public virtual int StepWidth { get; set; }
Gets or sets the angle in degrees of the progress bar dash or hatch parts.
public virtual int SweepAngle { get; set; }
Gets or sets the value of the first progress line. There could be two progress lines in the progress bar.
public virtual int Value1 { get; set; }
Methods
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF finalSize)
The size that is available for element.
Returns:The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides:
In this method call to the Arrange method of each child must be made.