Bunifu Separator
Divide panel layout content into clear groups.
Last updated
Divide panel layout content into clear groups.
Last updated
Bunifu Separator is a rich and modest .NET line control that allows us to partition user interface layouts, resulting in a modular interface design.
This section describes adding Bunifu Separator at the designer level and during a runtime event.
Bunifu Separator can be added to a form at the designer level by locating or searching BunifuSeparator
in your toolbox and drag it to your form as shown below.
To add Bunifu Separator at run time we will use the Load event handler of the form and render the separator. Generally, these situations are uncommon, but to include the control at run time, write the following code:
Let's take a deep dive and get insights into the available properties on Bunifu Separator.
1. LineColor
This property allows you to get or set the line's fill color. It is compatible with the use of RGB and HEX color values.
2. LineThickness
This property allows you to get or set the line's height/thickness. It only accepts integer values and has a default value of its thickness is 1. The value provided determines the thickness of the line thus, the greater the value provided, the thicker the line.
3.
OrientationThis property allows you to get or set the position enumeration for the line control. The position enumeration defines the following values:(i.e., the Vertical and Horizontal positions). The default orientation value set is Horizontal.
4. LineStyle
This property allows you to get or set an appearance enumeration of the line control. The default value of the property is the Solid enumeration. The line style enumerations define the following:
5. DashCap
This property allows you to get or set a dash edge cap style of the line control.
This property is only applicable when the LineStyle
property is set to one of the available Dash enumerations.
The DashCap's
default value is the Flat value. Other value enumerations include: Round and Triangle.
We hope that you have gained insights into using Bunifu Separator as a layout component for form. Should you have feedback or suggestions please send us via chat on the bottom right corner of the screen.
Enumeration
Description
Solid
Renders the separator control as a straight line.
Dash
Renders the separator control with a dashed line output.
Dot
Renders the separator control with a series of dotted pixel output.
DashDot
Renders a combined series of dash and dot pixel output for the separator control.
DashDotDot
Combines a dash line and two dotted pixels to create a separator control.
DoubleEdgeFaded
Creates a straight line with a faded color on both ends.
LeftEdgeFaded
Creates a straight line with a faded color on the left end.
RightEdgeFaded
Creates a straight line with a faded color on the right end.