Class ProgressBar
- Namespace
- Forma
- Assembly
- Forma.dll
Visualizes determinate or animated indeterminate progress with directional fill and optional percentage text.
public sealed class ProgressBar : Range, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
ProgressBar
- Implements
- Inherited Members
Constructors
ProgressBar()
public ProgressBar()
Properties
AccessibilityActions
public override AccessibilityActions AccessibilityActions { get; }
Property Value
AccessibilityRole
public override AccessibilityRole AccessibilityRole { get; }
Property Value
EditorPreviewIndeterminate
public bool EditorPreviewIndeterminate { get; set; }
Property Value
FillMode
public ProgressBarFillMode FillMode { get; set; }
Property Value
Font
public SpriteFont Font { get; set; }
Property Value
- SpriteFont
Indeterminate
public bool Indeterminate { get; set; }
Property Value
IndeterminateOffset
public float IndeterminateOffset { get; }
Property Value
IndeterminateSpeed
Pixels per second used by the indeterminate segment.
public float IndeterminateSpeed { get; set; }
Property Value
ShowPercentage
public bool ShowPercentage { get; set; }
Property Value
UIFont
public UIFont UIFont { get; set; }
Property Value
Methods
GetFillMode()
public ProgressBarFillMode GetFillMode()
Returns
GetFillRectangle(float)
Returns the current local fill rectangle for determinate state.
public Rectangle GetFillRectangle(float ratio)
Parameters
ratiofloat
Returns
- Rectangle
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
IsEditorPreviewIndeterminateEnabled()
public bool IsEditorPreviewIndeterminateEnabled()
Returns
IsIndeterminate()
public bool IsIndeterminate()
Returns
IsPercentageShown()
public bool IsPercentageShown()
Returns
SetEditorPreviewIndeterminate(bool)
public void SetEditorPreviewIndeterminate(bool previewIndeterminate)
Parameters
previewIndeterminatebool
SetFillMode(ProgressBarFillMode)
public void SetFillMode(ProgressBarFillMode mode)
Parameters
modeProgressBarFillMode
SetIndeterminate(bool)
public void SetIndeterminate(bool indeterminate)
Parameters
indeterminatebool
SetShowPercentage(bool)
public void SetShowPercentage(bool visible)
Parameters
visiblebool