This class manipulates strings in resource files.
It provides methods for changing the current cultureinfo, retrieving
a particular string from a given resource file, and formatting a string in
a specific way.
Inheritance Hierarchy
Cognex.VisionPro CogLocalizer
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax
The CogLocalizer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogLocalizer |
Construct a localizer that can localize resources associated with the
given type. The localizer determines what resource pool to load
based on information in the given type.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| FormatString(String, Object) |
Replaces the format item in the best-match localization of the string
referenced by strKey with the text equivalent of the value of a
specified Object instance.
| |
| FormatString(String, Object, Object) |
Replaces the format items in the best-match localization of the string
referenced by strKey with the text equivalent of the value of two
specified Object instances.
| |
| FormatString(Type, String, Object) |
Replaces the format item in the best-match localization of the string
referenced by strKey with the text equivalent of the value of a
specified Object instance.
| |
| FormatString(String, Object, Object, Object) |
Replaces the format items in the best-match localization of the string
referenced by strKey with the text equivalent of the value of three
specified Object instances.
| |
| FormatString(Type, String, Object, Object) |
Replaces the format items in the best-match localization of the string
referenced by strKey with the text equivalent of the value of two
specified Object instances.
| |
| FormatString(Type, String, Object, Object, Object) |
Replaces the format items in the best-match localization of the string
referenced by strKey with the text equivalent of the value of three
specified Object instances.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetHelpFile |
Gets the help filename embedded in the specified type.
| |
| GetObject |
Returns the value of the specified Object resource.
| |
| GetString(String) |
Gets the best-match localization of the string specified by strKey.
| |
| GetString(Type, String) |
Gets the best-match localization of the string referenced by strKey.
| |
| getStringRM |
Get the string ResourceManager from the assembly.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetVisionProCulture |
Sets the UI culture to use everywhere in VisionPro.
Must be called first at the start of an application
when overriding system installed culture setting.
| |
| ToString | (Inherited from Object.) |
See Also