Class PdfViewerLocalizationResourceAccessor
Inheritance
System.Object
PdfViewerLocalizationResourceAccessor
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.Windows.Forms.PdfViewer
Assembly: Syncfusion.PdfViewer.Windows.ClientProfile.dll
Syntax
public class PdfViewerLocalizationResourceAccessor
Constructors
PdfViewerLocalizationResourceAccessor()
Initializes new instance of
Declaration
public PdfViewerLocalizationResourceAccessor()
Fields
Instance
Instance of PdfViewerLocalizationResourceAccessor
Declaration
public static PdfViewerLocalizationResourceAccessor Instance
Field Value
Type |
---|
PdfViewerLocalizationResourceAccessor |
Resources
Holds the resource manager of the
Declaration
public ResourceManager Resources
Field Value
Type |
---|
System.Resources.ResourceManager |
Methods
GetControlAssembly()
Declaration
protected virtual Assembly GetControlAssembly()
Returns
Type |
---|
System.Reflection.Assembly |
GetControlAssemblyDefaultNamespace()
Declaration
protected virtual string GetControlAssemblyDefaultNamespace()
Returns
Type |
---|
System.String |
GetString(CultureInfo, String, Object)
Gets the localized text.
Declaration
public string GetString(CultureInfo culture, string name, object control)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Current UI culture. |
System.String | name | String that has to be localized. |
System.Object | control |
Returns
Type | Description |
---|---|
System.String | The localized string |
GetString(String)
Gets the localized text.
Declaration
public string GetString(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | String that has to be localized. |
Returns
Type | Description |
---|---|
System.String | The localized string. |
GetString(String, Object[])
Gets the localized text.
Declaration
public string GetString(string name, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | String that has to be localized. |
System.Object[] | args | Control object |
Returns
Type | Description |
---|---|
System.String | 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 void SetResources(Assembly lookupassembly, string nameSpace)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | lookupassembly | The control assembly. |
System.String | nameSpace | The namespace of the control. |