Bunifu Framework Docs
HomePricingFAQsMy Account
  • Introduction
  • Getting started
    • Requirements
    • Installation
    • Installing for .Net 5 & Above
    • Licensing
      • Managing your licenses
      • Bunifu Licensing CLI
      • Bunifu Device Remover (Deprecated)
  • BUNIFU UI
    • Controls
      • Bunifu Button
      • Bunifu Button (variant)
      • Bunifu Cards
      • Bunifu CheckBox
      • Bunifu Circle Progress
      • Bunifu Datagrid View
      • Bunifu Date Picker
      • Bunifu Drop Down
      • Bunifu Flat Button
      • Bunifu Form Caption Button
      • Bunifu Form Control Box
      • Bunifu Form Resize Icon
      • Bunifu Gradient Panel
      • Bunifu Icon Button
      • Bunifu Image Button (New)
      • Bunifu Image Button (Old)
      • Bunifu IOS Switch (1.5.3)
      • Bunifu Label
      • Bunifu Loader
      • Bunifu Picture Box
      • Bunifu Pages
      • Bunifu Panel
      • Bunifu Progress Bar
      • Bunifu Radial Gauge
      • Bunifu Radio Button
      • Bunifu Rating
      • Bunifu Range
      • Bunifu Separator
      • Bunifu Sliders
      • Bunifu Shadow Panel
      • Bunifu Shapes
      • Bunifu Switch (1.5.3)
      • Bunifu ScrollBars
      • Bunifu Toggle Switch
      • Bunifu Toggle Switch (variant)
      • Bunifu Tile Button
      • Bunifu Thin Button (1.5.3)
      • Bunifu ToolTip
      • Bunifu Textbox
      • Bunifu User Control
    • Components
      • Bunifu Color Transition
      • Bunifu Drag
      • Bunifu Elipse [Deprecated]
      • Bunifu Form Dock
      • Bunifu Form Drag
      • Bunifu Form Resizer
      • Bunifu Snackbar
      • Bunifu Transition
  • BUNIFU CHARTS
    • Introduction
      • Quick Tips
    • Chart Components
      • Bunifu Bar Chart
      • Bunifu Bubble Chart
      • Bunifu Canvas Control
      • Bunifu Doughnut Chart
      • Bunifu Horizontal bar Chart
      • Bunifu Line Chart
      • Bunifu Pie chart
      • Bunifu Polar Chart
      • Bunifu Radar Chart
  • BUNIFU DATAVIZ [Deprecated]
    • Basic Charts [Deprecated]
      • Step Line Chart [Deprecated]
      • Step Area Chart [Deprecated]
      • Spline Chart [Deprecated]
      • Pie Chart [Deprecated]
      • Line Chart [Deprecated]
      • Doughnut Chart [Deprecated]
      • Bar Chart [Deprecated]
      • Area Chart [Deprecated]
      • Column Chart [Deprecated]
    • Advanced Charts [Deprecated]
      • Stacked Column 100 Chart [Deprecated]
      • Stacked Column Chart [Deprecated]
      • Stacked Bar Chart 100 [Deprecated]
      • Stacked Bar Chart [Deprecated]
      • Stacked Area Chart 100 [Deprecated]
      • Stacked Area Chart [Deprecated]
      • Scatter Chart [Deprecated]
      • Range Spline Area Chart [Deprecated]
      • Range Column Chart [Deprecated]
      • Range Bar Chart [Deprecated]
      • Range Area Chart [Deprecated]
      • OHLC Chart [Deprecated]
      • Candle Stick Chart [Deprecated]
      • Bubble Chart [Deprecated]
Powered by GitBook
On this page
  • Overview
  • Getting Started
  • Adding Bunifu Separator at Design Time
  • Adding Bunifu Separator at Runtime
  • Key Properties
  • 1. LineColor
  • 2. LineThickness
  • 3. Orientation
  • 4. LineStyle
  • 5. DashCap
  • Take Away

Was this helpful?

  1. BUNIFU UI
  2. Controls

Bunifu Separator

Divide panel layout content into clear groups.

PreviousBunifu RangeNextBunifu Sliders

Last updated 2 years ago

Was this helpful?

Overview

Bunifu Separator is a rich and modest .NET line control that allows us to partition user interface layouts, resulting in a modular interface design.

Getting Started

This section describes adding Bunifu Separator at the designer level and during a runtime event.

Adding Bunifu Separator at Design Time

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.

Adding Bunifu Separator at Runtime

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:

private void Form1_Load(object sender, EventArgs e)
{
    //instantiate the separator control using Bunifu.UI.WinForms
    BunifuSeparator bunifuSeparator = new BunifuSeparator();
    //set the location of the control
    bunifuSeparator.Location = new Point(195, 150);
    //set the color for the control
    bunifuSeparator.LineColor = Color.DodgerBlue;
    //set the line style for the separator
    bunifuSeparator.LineStyle = BunifuSeparator.LineStyles.DashDot;
    //add the control to the form
    this.Controls.Add(bunifuSeparator);
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
	'instantiate the separator control using Bunifu.UI.WinForms
	Dim bunifuSeparator As New BunifuSeparator()
	'set the location of the control
	bunifuSeparator.Location = New Point(195, 150)
	'set the color for the control
	bunifuSeparator.LineColor = Color.DodgerBlue
	'set the line style for the separator
	bunifuSeparator.LineStyle = BunifuSeparator.LineStyles.DashDot
	'add the control to the form
	Me.Controls.Add(bunifuSeparator)
End Sub

Let's take a deep dive and get insights into the available properties on Bunifu Separator.

Key Properties

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. Orientation

This 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:

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.

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.

Take Away

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.