Name
ProgressBar
Synopsis
The ProgressBar
class wraps the Win32 progress
control to graphically represent the completion of a long operation.
You can specify the Minimum
and
Maximum
value that can be represented by the
control, along with the current Value
. The control
fills from the minimum on the left to the maximum on the right. Note
that it does not honor right-to-left reading, so left and right
really do mean left and right.
You can also specify a Step
, which will be added
to the current Value
each time you call
PerformStep()
, or you can Increment()
the value by a particular amount.
public sealed class ProgressBar : Control { // Public Constructors public ProgressBar(); // Public Instance Properties public override bool AllowDrop{set; get; } // overrides Control public override Color BackColor{set; get; } // overrides Control public override Image BackgroundImage{set; get; } // overrides Control public bool CausesValidation{set; get; } // overrides Control public override Font Font{set; get; } // overrides Control public override Color ForeColor{set; get; } // overrides Control public ImeMode ImeMode{set; get; } // overrides Control public int Maximum{set; get; } public int Minimum{set; get; } public override RightToLeft RightToLeft{set; get; } // overrides Control public int Step{set; get; } public bool TabStop{set; get; } // overrides Control public override string Text{set; get; } // overrides Control public int Value{set; get; } // Protected Instance Properties protected override ...
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.