Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VScrollBar() Constructor

Creates a new VScrollBar object.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.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