バージョン

GroupMoveUp メソッド

Groups コレクションで指定した OutlookBarGroup を前方に移動します。
シンタックス
'宣言
 
Public Sub GroupMoveUp( _
   ByVal group As OutlookBarGroup _
) 
public void GroupMoveUp( 
   OutlookBarGroup group
)

パラメータ

group
位置が変更される OutlookBarGroup
使用例
GroupMoveDownOrUp
using Infragistics.Windows.OutlookBar;

private void ButtonDown_Click(object sender, RoutedEventArgs e)
{
    OutlookBarGroup group = xamOutlookBar1.SelectedGroup;
    if (group == null)
        return;
    xamOutlookBar1.GroupMoveDown(group);
}

private void ButtonUp_Click(object sender, RoutedEventArgs e)
{
    OutlookBarGroup group = xamOutlookBar1.SelectedGroup;
    if (group == null)
        return;
    xamOutlookBar1.GroupMoveUp(group);
}
GroupMoveDownOrUp
Imports Infragistics.Windows.OutlookBar

Private  Sub ButtonDown_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim group As OutlookBarGroup =  xamOutlookBar1.SelectedGroup 
    If group Is Nothing Then
        Return
    End If
    xamOutlookBar1.GroupMoveDown(group)
End Sub
 
Private  Sub ButtonUp_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim group As OutlookBarGroup =  xamOutlookBar1.SelectedGroup 
    If group Is Nothing Then
        Return
    End If
    xamOutlookBar1.GroupMoveUp(group)
End Sub
<Window x:Class="XamOutlookBarApp.IG_XamOutlookBar_Properties"
    
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
xmlns:igOutlookBar="http://infragistics.com/OutlookBar"
    
Title="IG_XamOutlookBar_Properties" Height="300" Width="300">
    
<StackPanel Orientation="Horizontal">
        
<igOutlookBar:XamOutlookBar Name="xamOutlookBar1" Width="144">
            
<igOutlookBar:OutlookBarGroup Header="Group 1" Content="Group 1"/>
            
<igOutlookBar:OutlookBarGroup Header="Group 2" Content="Group 2"/>
        
</igOutlookBar:XamOutlookBar>
        
<StackPanel>
            
<Button Click="ButtonUp_Click">Move Selected Up</Button>
            
<Button Click="ButtonDown_Click">Move Selected Down</Button>
        
</StackPanel>
    
</StackPanel>
</Window>
参照