'宣言 Public Enum ScrollbarStyle Inherits System.Enum
public enum ScrollbarStyle : System.Enum
メンバ | 解説 |
---|---|
Always | スクロールバーは常に表示されます。 |
Automatic | 自動 - スクロールバーの表示/非表示がコントロールによって決定されます。 |
Never | スクロールバーは表示されません。 |
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button12.Click ' Set the scrollbar style to 'Always' so that the scrollbar always shows. This will ' eliminate the 'jumpiness' that occurs if Scrollbars are set to automatic. When set ' to Automatic the scrollbars are appear/disappears based on whether they are needed ' which causes the groups in the control to shift slightly. ' ' Note that the Scrollbars property only has meaning of the control style is ExplorerBar. If (Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar) Then Me.ultraExplorerBar1.Scrollbars = ScrollbarStyle.Always End If End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button12_Click(object sender, System.EventArgs e) { // Set the scrollbar style to 'Always' so that the scrollbar always shows. This will // eliminate the 'jumpiness' that occurs if Scrollbars are set to automatic. When set // to Automatic the scrollbars are appear/disappears based on whether they are needed // which causes the groups in the control to shift slightly. // // Note that the Scrollbars property only has meaning of the control style is ExplorerBar. if (this.ultraExplorerBar1.Style == UltraExplorerBarStyle.ExplorerBar) this.ultraExplorerBar1.Scrollbars = ScrollbarStyle.Always; }