バージョン

Load(String,Boolean,String) メソッド

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

パラメータ

fileName
アプリケーション スタイル情報を含むファイル
validate
読み取り時にファイルが評価されるかどうかを示すブール値。
styleLibraryName
ライブラリを識別するために使用される名前。この名前に ComponentRole.StyleLibraryName が設定されるコントロールは、読み込みされるライブラリを使用します。
使用例
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;
}
参照