'宣言 Public Overloads Sub Reposition( _ ByVal newDockPosition As DockedPosition, _ ByVal newDockedRow As Integer _ )
public void Reposition( DockedPosition newDockPosition, int newDockedRow )
例外 | 解説 |
---|---|
System.ComponentModel.InvalidEnumArgumentException | newDockPosition が DockedPosition 列挙体で定義されていないです。 |
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click ' Iterate thru the toolbars collection and reposition each toolbar. Move the toolbars ' between dock areas in a clockwise fashion - Top, Right, Bottom, Left, Floating. Dim toolbar As UltraToolbar For Each toolbar In Me.UltraToolbarsManager1.Toolbars Select Case toolbar.DockedPosition Case DockedPosition.Top toolbar.Reposition(DockedPosition.Right, 0) Case DockedPosition.Right toolbar.Reposition(DockedPosition.Bottom, 0) Case DockedPosition.Bottom toolbar.Reposition(DockedPosition.Left, 0) Case DockedPosition.Left toolbar.Reposition(DockedPosition.Floating, 0) Case DockedPosition.Floating toolbar.Reposition(DockedPosition.Top, 0) End Select Next End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void button26_Click(object sender, System.EventArgs e) { // Iterate thru the toolbars collection and reposition each toolbar. Move the toolbars // between dock areas in a clockwise fashion - Top, Right, Bottom, Left, Floating. foreach(UltraToolbar toolbar in this.ultraToolbarsManager1.Toolbars) { switch(toolbar.DockedPosition) { case DockedPosition.Top: toolbar.Reposition(DockedPosition.Right, 0); break; case DockedPosition.Right: toolbar.Reposition(DockedPosition.Bottom, 0); break; case DockedPosition.Bottom: toolbar.Reposition(DockedPosition.Left, 0); break; case DockedPosition.Left: toolbar.Reposition(DockedPosition.Floating, 0); break; case DockedPosition.Floating: toolbar.Reposition(DockedPosition.Top, 0); break; } } }