'宣言 Public Property ShowIconArea As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean ShowIconArea {get; set;}
Imports Infragistics.Win.UltraWinToolbars Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click ' Set the minimum and maximum width of the left side of the tool area to be 300, ' This will fix the size of left side so it will always be 300 pixels wide, ' regardless of its contents Me.UltraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.MinWidth = 300 Me.UltraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.MaxWidth = 300 ' Set the display style of the labels in the left side to be header style. ' All labels in the left side of the application menu will have the header ' appearance and will cover the icon area. Me.UltraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.Settings.LabelDisplayStyle = LabelMenuDisplayStyle.Header ' Hide the icon area on the left side of the application menu. Tools will ' not show their images on this side. Me.UltraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.Settings.ShowIconArea = Infragistics.Win.DefaultableBoolean.False End Sub
using System.Windows.Forms; using Infragistics.Win.UltraWinToolbars; private void button1_Click( object sender, EventArgs e ) { // Set the minimum and maximum width of the left side of the tool area to be 300, // This will fix the size of left side so it will always be 300 pixels wide, // regardless of its contents this.ultraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.MinWidth = 300; this.ultraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.MaxWidth = 300; // Set the display style of the labels in the left side to be header style. // All labels in the left side of the application menu will have the header // appearance and will cover the icon area. this.ultraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.Settings.LabelDisplayStyle = LabelMenuDisplayStyle.Header; // Hide the icon area on the left side of the application menu. Tools will // not show their images on this side. this.ultraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.Settings.ShowIconArea = Infragistics.Win.DefaultableBoolean.False; }