'Declaration Public Overloads Sub ResolveAppearance( _ ByRef appearance As Infragistics.Win.AppearanceData, _ ByRef requestedProps As Infragistics.Win.AppearancePropFlags _ )
public void ResolveAppearance( ref Infragistics.Win.AppearanceData appearance, ref Infragistics.Win.AppearancePropFlags requestedProps )
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button47_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button47.Click ' All the code below operates on the first Item in the first Group so make sure we have at ' least one group. If (Me.ultraExplorerBar1.Groups.Count < 1) Then Return End If If (Me.ultraExplorerBar1.Groups(0).Items.Count < 1) Then Return End If ' Get the fully resolved appearance for the first Item in the first Group ' and display the setting for forecolor, backcolor, and font bold. Dim appearanceData As AppearanceData = New AppearanceData() Dim requestedProperties As AppearancePropFlags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor Or AppearancePropFlags.FontBold Me.ultraExplorerBar1.Groups(0).Items(0).ResolveAppearance(AppearanceData, requestedProperties) Debug.WriteLine("The backcolor for first group's first item is '" + appearanceData.BackColor.ToString()) Debug.WriteLine("The forecolor for first group's first item is '" + appearanceData.ForeColor.ToString()) Debug.WriteLine("The fontbold setting for first group's first item is '" + appearanceData.FontData.Bold.ToString()) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button47_Click(object sender, System.EventArgs e) { // All the code below operates on the first Item in the first Group so make sure we have at // least one group. if (this.ultraExplorerBar1.Groups.Count < 1) return; if (this.ultraExplorerBar1.Groups[0].Items.Count < 1) return; // Get the fully resolved appearance for the first Item in the first Group // and display the setting for forecolor, backcolor, and font bold. AppearanceData appearanceData = new AppearanceData(); AppearancePropFlags requestedProperties = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor | AppearancePropFlags.FontBold; this.ultraExplorerBar1.Groups[0].Items[0].ResolveAppearance(ref appearanceData, ref requestedProperties); Debug.WriteLine("The backcolor for first group's first item is '" + appearanceData.BackColor.ToString()); Debug.WriteLine("The forecolor for first group's first item is '" + appearanceData.ForeColor.ToString()); Debug.WriteLine("The fontbold setting for first group's first item is '" + appearanceData.FontData.Bold.ToString()); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2