Infragistics2.Win.UltraWinTabControl.v8.1
Resources Class
See Also  Members   Example 
Infragistics.Win.UltraWinTabControl Namespace : Resources Class

Exposes a ResourceCustomizer instance for this assembly.

Syntax

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

Example

The following sample code illustrates how to use an assembly's resource customizer to customize the string resources that an assembly uses.

For a list of the assembly resource strings/values, refer to the "Customizing Assembly Resource Strings" section in the Developer's Guide section of the help.



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