Skip to main content

VScrollBar() Constructor

Creates a new VScrollBar object.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public VScrollBar()

Remarks

Use this constructor to create and initialize a new VScrollBar class instance. The constructor initializes the vertical scroll bar with default settings.

Example

The following sample code demonstrates how to create and place onto a form a new vertical scroll bar at runtime.

// Create and initialize an VScrollBar
DevExpress.XtraEditors.VScrollBar vbar = new DevExpress.XtraEditors.VScrollBar();
vbar.Height = 100;
vbar.Top = 20;
vbar.Left = 20;
// Add the scroll bar to the form
Controls.Add(vbar);
See Also