バージョン

ResolveAppearance メソッド

コントロールのAppearanceの選択されたプロパティを解決します。
シンタックス
'宣言
 
Public Sub ResolveAppearance( _
   ByRef appData As Infragistics.Win.AppearanceData, _
   ByRef requestedProps As Infragistics.Win.AppearancePropFlags _
) 
public void ResolveAppearance( 
   ref Infragistics.Win.AppearanceData appData,
   ref Infragistics.Win.AppearancePropFlags requestedProps
)

パラメータ

appData
解決された外観を格納する構造体。
requestedProps
解決するプロパティを示すビットフラグ。
解説

このメソッドを使用して、コントロールを書式設定するために使用する実際の値を取得します。このメソッドは、すべてのAppearanceプロパティの値、または指定したAppearanceプロパティの値を返し、必要に応じてAppearance階層をたどります。このメソッドのビットフラグを結合して、解決すべきプロパティを指定できます。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinMaskedEdit

  Private Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button5.Click
      ' AppearanceData is a structure type. Create an instance of it.
      Dim appData As AppearanceData = New AppearanceData()

      ' Specify which properties to resolve by bitwise or'ing the AppearancePropFlags enumeration
      ' members associated with the properties. You can use AllRender member to resolve all render
      ' properties which include all of the properties except the Cursor. Here we are only
      ' resolving BackColor and ForeColor properties.
      Dim propertiesToResolve As AppearancePropFlags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor

      ' Call ResolveAppearance passing in appData and propertiesToResolve flags as ref parameters.
      ' This method will set the requested properties on the passed in appData AppearanceData structure.
      Me.ultraMaskedEdit1.ResolveAppearance(appData, propertiesToResolve)

      ' Now the appData should have BackColor and ForeColor set to valid colors. These colors are
      ' the ones that the ultramasked edit will use to draw its background and its foreground.
      Debug.WriteLine("Resolved BackColor = " & appData.BackColor.ToString())
      Debug.WriteLine("Resolved ForeColor = " & appData.ForeColor.ToString())
  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinMaskedEdit;
using System.Diagnostics;

private void button5_Click(object sender, System.EventArgs e)
{
	// AppearanceData is a structure type. Create an instance of it.
	AppearanceData appData = new AppearanceData( );

	// Specify which properties to resolve by bitwise or'ing the AppearancePropFlags enumeration
	// members associated with the properties. You can use AllRender member to resolve all render
	// properties which include all of the properties except the Cursor. Here we are only
	// resolving BackColor and ForeColor properties.
	AppearancePropFlags propertiesToResolve = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;

	// Call ResolveAppearance passing in appData and propertiesToResolve flags as ref parameters.
	// This method will set the requested properties on the passed in appData AppearanceData structure.
	this.ultraMaskedEdit1.ResolveAppearance( ref appData, ref propertiesToResolve );

	// Now the appData should have BackColor and ForeColor set to valid colors. These colors are
	// the ones that the ultramasked edit will use to draw its background and its foreground.
	Debug.WriteLine( "Resolved BackColor = " + appData.BackColor.ToString( ) );
	Debug.WriteLine( "Resolved ForeColor = " + appData.ForeColor.ToString( ) );
}
参照