Infragistics(R) NetAdvantage(R) Windows Forms
Resources Class
Members  Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : Resources Class

Exposes a T:Infragistics.Shared.ResourceCustomizer instance for this assembly.

Syntax

Visual Basic (Declaration) 
Public Class Resources 
C# 
public class Resources 

Example

For a listing of the resource names specific to the Infragistics.Win.UltraWinGrid, Infragistics.Win.UltraWinMaskedEdit, Infragistics.Win, and Infragistics.Shared assemblies, refer to the "Assembly Resource Strings" topic in the following section of the help: Developer's Guide --> The Toolset --> Assemblies.

Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim rc As Infragistics.Shared.ResourceCustomizer

    ' Note: Each Infragistics windows forms assembly 
    ' exposes a resource customizer so that any string
    ' resource that the assembly uses can be customized.
    ' This lets the application developer easily modify  
    ' any string that an Infragistics control would show
    ' to an end-user.

    ' Get the resource customizer object for the
    ' 'Infragistics.Win.UltraWinTree' assembly.
    rc = Infragistics.Win.UltraWinTree.Resources.Customizer

    ' Customize a couple of string resources.
    rc.SetCustomizedString("xxxxx", "New string for 'xxxxx' resource")
    rc.SetCustomizedString("yyyyy", "New string for 'yyyyy' resource")

    ' Get the resource customizer object for the  
    ' 'Infragistics.Win' assembly.
    rc = Infragistics.Win.Resources.Customizer

    ' Customize one of its string resources.
    rc.SetCustomizedString("zzzzz", "New string for 'zzzzz' resource")

    ' The 'GetCustomizedString' method can be used to
    ' retrieve any previously customized string resource.
    Dim customizedString As String
    customizedString = rc.GetCustomizedString("zzzzz")

    ' Note: In the above examples, the first parameter
    ' to the 'SetCustomizedString' method (i.e. "xxxxx",
    ' "yyyyy" or "zzzzz") specifies the name of the resource.
    '
    ' A list of the resource names is included in online help
    ' under Infragistics Software\[assembly name]\Support Topics\
    ' Message Strings Customization [name]
    '
    ' Also, the string resources can be reset back to there
    ' original values by calling one of the 'Reset...' methods
    ' as in the following sample code.

    ' Reset a previously customized string resource back to
    ' its original value.
    rc.ResetCustomizedString("xxxxx")

    ' Reset all previously customized string resources back to
    ' their original values.
    rc.ResetAllCustomizedStrings()

End Sub
C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{

	Infragistics.Shared.ResourceCustomizer rc;

	// Note: Each Infragistics windows forms assembly 
	// exposes a resource customizer so that any string
	// resource that the assembly uses can be customized.
	// This lets the application developer easily modify  
	// any string that an Infragistics control would show
	// to an end-user.
	
	// Get the resource customizer object for the
	// 'Infragistics.Win.UltraWinTree' assembly.
	rc = Infragistics.Win.UltraWinTree.Resources.Customizer;

	// Customize a couple of string resources.
	rc.SetCustomizedString("xxxxx", "New string for 'xxxxx' resource");
	rc.SetCustomizedString("yyyyy", "New string for 'yyyyy' resource");

	// Get the resource customizer object for the 
	// 'Infragistics.Win' assembly.
	rc = Infragistics.Win.Resources.Customizer;

	// Customize one if its string resources.
	rc.SetCustomizedString("zzzzz", "New string for 'zzzzz' resource");

	// The 'GetCustomizedString' method can be used to
	// retrieve any previously customized string resource.
	string customizedString = rc.GetCustomizedString("zzzzz");

	// Note: In the above examples, the first parameter
	// to the 'SetCustomizedString' method (i.e. "xxxxx",
	// "yyyyy" or "zzzzz") specifies the name of the resource.
	// A list of the resource names is included in online help
	// under Infragistics Software\[assembly name]\Support Topics\
	// Message Strings Customization [name]
	//
	// Also, the string resources can be reset back to there
	// original values by calling one of the 'Reset...' methods
	// as in the following sample code.

	// Reset a previously customized string resource back to
	// its original value.
	rc.ResetCustomizedString("xxxxx");

	// Reset all previously customized string resources back to
	// their original values.
	rc.ResetAllCustomizedStrings();

}

See Also

Reference

Resources Members
Infragistics.Win.UltraWinGrid Namespace
Customizer Property
T:Infragistics.Shared.ResourceCustomizer