Skip to main content
A newer version of this page is available. .

VScrollBar() Constructor

Creates a new VScrollBar object.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v18.2.dll

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);

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the VScrollBar() constructor.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also