バージョン

Load(String,Boolean) メソッド

指定したファイルからデフォルト ライブラリにスタイル情報を読み込みします。
シンタックス
'宣言
 
Public Overloads Shared Sub Load( _
   ByVal fileName As String, _
   ByVal validate As Boolean _
) 
public static void Load( 
   string fileName,
   bool validate
)

パラメータ

fileName
アプリケーション スタイル情報を含むファイル
validate
読み取り時にファイルが評価されるかどうかを示すブール値。
使用例
Public Sub New()
    MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeComponent()

    ' Application styling is enabled once a styleset library is loaded by
    ' calling the Load method of the StyleManager. This is normally
    ' done at application startup.
    '
    Infragistics.Win.AppStyling.StyleManager.Load("MyStyleLibrary.isl", True)

    ' Note: 
    ' Within the library there will be a styleset marked as the default styleset. 
    ' In addition, there can be other stylesets within the library that are marked
    ' as the default styleset for component types, e.g. UltraGrid, UltraCombo etc.
    '
    ' In this example, we don't want to use the default styleset for the 
    ' UltraToolbarsManager component so we set its StyleSetName property instead.
    '
    Me.UltraToolbarsManager1.StyleSetName = "My_Custom_StyleSet"

    ' We also want to turn application styling off for an UltraButton
    ' on the form.
    '
    Me.UltraButton1.UseAppStyling = False

End Sub
public MainForm()
{
	InitializeComponent();

	// Application styling is enabled once a styleset library is loaded by
	// calling the Load method of the StyleManager. This is normally done
	// at application startup.
	//
	Infragistics.Win.AppStyling.StyleManager.Load("MyStyleLibrary.isl", true);
			
	// Note: 
	// Within the library there will be a styleset marked as the default styleset. 
	// In addition, there can be other stylesets within the library that are marked
	// as the default styleset for component types, e.g. UltraGrid, UltraCombo etc.
	//
	// In this example, we don't want to use the default styleset for the 
	// UltraToolbarsManager component so we set its StyleSetName property instead.
	//
	this.ultraToolbarsManager1.StyleSetName = "My_Custom_StyleSet";

	// We also want to turn application styling off for an UltraButton
	// on the form.
	//
	this.ultraButton1.UseAppStyling = false;
}
参照