Layout Configuration
This feature enables developers to control the spacing and alignment of the group box’s title and content, ensuring the control fits seamlessly into various UI layouts.
Overview
Property Details
Property
Description
Default Value
Notes
Code Examples
Example 1: Basic Layout Configuration
// Create a group box with default layout settings.
var groupBoxBasicLayout = new SiticoneGroupBox
{
GroupTitle = "Basic Layout",
TitlePadding = new Padding(0, 8, 0, 12), // Standard title padding
Padding = new Padding(5), // Uniform content padding
ContentPadding = 5, // Minimal spacing for content
TitlePos = TitlePosition.TopLeft // Title aligned to the top left
};
// Add the group box to the form.
this.Controls.Add(groupBoxBasicLayout);
groupBoxBasicLayout.Location = new Point(10, 10);
groupBoxBasicLayout.Size = new Size(300, 180);Example 2: Center-Aligned Title with Enhanced Spacing
Example 3: Right-Aligned Title with Custom Content Spacing
Key Points
Point
Details
Best Practices
Practice
Recommendation
Common Pitfalls
Pitfall
Avoidance Strategy
Usage Scenarios
Scenario
Description
Sample Configuration
Review
Summary
Additional Tips
Tip
Explanation
Last updated