バージョン

ColumnSpan プロパティ

GalleryTool ドロップダウンに表示される時に GalleryItem がスパンすべき論理列数を返す/設定します。
シンタックス
'宣言
 
Public Property ColumnSpan As Integer
public int ColumnSpan {get; set;}
例外
例外解説
System.ArgumentOutOfRangeExceptionプロパティが 1 未満の値に設定される場合。
使用例
Imports System
Imports System.Windows
Imports Infragistics.Windows.Ribbon


Namespace MyNamespace
    Public Partial Class MyWindow
        Inherits XamRibbonWindow
        Public Sub New()
            InitializeComponent()
        End Sub
       
        Protected Sub LoadGalleryTool()
            Dim item As New GalleryItem()
            item.Key = "Item1"
            item.Text = "First Item"
            item.Image = New BitmapImage(New Uri("\Images\ig_office_icon_16.png", UriKind.Relative))
            item.ColumnSpan = 2
           
            galleryTool.Items.Add(item)
        End Sub
    End Class
End Namespace
using System;
using System.Windows;
using Infragistics.Windows.Ribbon;


namespace MyNamespace
{
    public partial class MyWindow : XamRibbonWindow
    {
        public MyWindow()
        {
            InitializeComponent();
        }

        protected void LoadGalleryTool()
        {
            GalleryItem item = new GalleryItem();
            item.Key = "Item1";
            item.Text = "First Item";
            item.Image = new BitmapImage(new Uri("\\Images\\ig_office_icon_16.png", UriKind.Relative));
            item.ColumnSpan = 2;

            galleryTool.Items.Add(item);
        }
    }
}
<igRibbon:XamRibbonWindow x:Class="MyWindow"
    
xmlns:igRibbon="http://infragistics.com/Ribbon"
    
xmlns:s="clr-namespace:System;assembly=mscorlib">

  ....
 
        
<igRibbon:RibbonGroup Id="groupId" Caption="Group">
            
<igRibbon:MenuTool ShouldDisplayGalleryPreview="True" Caption="GalleryToolMenu">
                
<igRibbon:GalleryTool Name="galleryToolItems" >
                    
<igRibbon:GalleryTool.Items> 
                        
<igRibbon:GalleryItem Key="Item1" Text="First Item" Image="\Images\ig_office_icon_16.png" ColumnSpan="2"/>
                    
</igRibbon:GalleryTool.Items>
                
</igRibbon:GalleryTool>
            
</igRibbon:MenuTool>
        
</igRibbon:RibbonGroup> 

  ....

</igRibbon:XamRibbonWindow>
参照