menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SR - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SR

    Represents a class which contains resource manager that provides convenient access to culture-specific resources at run time.

    Inheritance
    System.Object
    SR
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.WinForms.ListView
    Assembly: Syncfusion.SfListView.WinForms.dll
    Syntax
    public class SR

    Constructors

    SR()

    Declaration
    public SR()

    Methods

    GetObject(CultureInfo, String)

    Declaration
    public static object GetObject(CultureInfo culture, string name)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo culture
    System.String name
    Returns
    Type
    System.Object

    GetString(String)

    Gets the localized string for the current culture.

    Declaration
    public static string GetString(string name)
    Parameters
    Type Name Description
    System.String name

    The string that need to be localized.

    Returns
    Type Description
    System.String

    Returns the localized string.

    SetResources(Assembly, String)

    Sets the resource manager based on the assembly and namespace. It can be used to get the values from the application resource files when the assembly name and the namespace of the control or application is different.

    Declaration
    public static void SetResources(Assembly controlAssembly, string nameSpace)
    Parameters
    Type Name Description
    System.Reflection.Assembly controlAssembly

    The control assembly.

    System.String nameSpace

    The namespace of the control.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved