Display Options
Display Options allow developers to control how progress information is visually presented, including the display of percentage text, text formatting, and text alignment within the control.
Overview
Properties and Methods
Property
Type
Default Value
Description
Code Examples and Samples
Example 1: Enabling Percentage Display
// Instantiate the progress bar control
SiticoneVBarsProgress progressBar = new SiticoneVBarsProgress
{
Location = new System.Drawing.Point(50, 50),
Size = new System.Drawing.Size(30, 200),
Minimum = 0,
Maximum = 100,
Value = 45,
// Enable percentage display and set a custom format
ShowPercentage = true,
FormatString = "0" // Display as an integer percentage
};
// Add the control to the form
this.Controls.Add(progressBar);Example 2: Customizing Text Alignment
Example 3: Dynamic Update of Display Options
Key Points
Key Point
Details
Best Practices
Best Practice
Recommendation
Common Pitfalls
Common Pitfall
Solution
Usage Scenarios
Scenario
Description
Sample Code Snippet
Review
Summary
Additional Sections
Integration Tips
Tip
Details
Demo Application Sample
Last updated