バージョン

SizingMode プロパティ (GalleryTool)

ツールの現在のサイズを示す列挙体を返します。(読み取り専用)
シンタックス
'宣言
 
Public ReadOnly Property SizingMode As RibbonToolSizingMode
public RibbonToolSizingMode SizingMode {get;}
解説

可能なサイズは次を含みます: ImageOnly、ImageAndTextNormal、ImageAndTextLarge。

使用例
Imports System
Imports System.Windows
Imports Infragistics.Windows.Ribbon


Namespace MyNamespace
    Public Partial Class MyWindow
        Inherits XamRibbonWindow
        Public Sub New()
            InitializeComponent()
        End Sub
       
        Private Sub CheckGalleryTool()
            ' Sizing mode
            Dim mode As RibbonToolSizingMode = galleryTool.SizingMode
            Select Case mode
                Case RibbonToolSizingMode.ImageAndTextLarge
                    'do something
                    Exit Select
                Case RibbonToolSizingMode.ImageAndTextNormal
                    'do something
                    Exit Select
                Case RibbonToolSizingMode.ImageOnly
                    'do someting
                    Exit Select
            End Select
        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();
        }

        private void CheckGalleryTool()
        {
            // Sizing mode
            RibbonToolSizingMode mode = galleryTool.SizingMode;
            switch (mode)
            {
                case RibbonToolSizingMode.ImageAndTextLarge:
                    //do something
                    break;
                case RibbonToolSizingMode.ImageAndTextNormal:
                    //do something
                    break;
                case RibbonToolSizingMode.ImageOnly:
                    //do someting
                    break;
            }
	     }
    }
}
参照