'宣言 Public 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 )
このメソッドは、コントロールのメイン UIElement を描画する間に使用される値に 'appearance' 引数でリクエストされたプロパティを設定します。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button91_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button91.Click ' Get the fully resolved appearance for the control and display ' the settings for backcolor and forecolor and gradient style. Dim appearanceData As AppearanceData = New AppearanceData() Dim requestedProperties As AppearancePropFlags = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor Or AppearancePropFlags.BackGradientStyle Me.ultraExplorerBar1.ResolveAppearance(appearanceData, requestedProperties) Debug.WriteLine("The backcolor for the control is '" + appearanceData.BackColor.ToString()) Debug.WriteLine("The forecolor for the control is '" + appearanceData.ForeColor.ToString()) Debug.WriteLine("The backcolor gradient style for the control is '" + appearanceData.BackGradientStyle.ToString()) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button93_Click(object sender, System.EventArgs e) { // Get the fully resolved appearance for the control and display // the settings for backcolor and forecolor and gradient style. AppearanceData appearanceData = new AppearanceData(); AppearancePropFlags requestedProperties = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor | AppearancePropFlags.BackGradientStyle; this.ultraExplorerBar1.ResolveAppearance(ref appearanceData, ref requestedProperties); Debug.WriteLine("The backcolor for the control is '" + appearanceData.BackColor.ToString()); Debug.WriteLine("The forecolor for the control is '" + appearanceData.ForeColor.ToString()); Debug.WriteLine("The backcolor gradient style for the control is '" + appearanceData.BackGradientStyle.ToString()); } }