CogLocalizer FormatString Method (String, Object, Object)Cognex VisionPro 9.21
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.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 83.0.0.0 (83.0.0.0)
Syntax

public string FormatString(
	string strKey,
	Object arg0,
	Object arg1
)

Parameters

strKey
Type: System String
Key to look up the string to localize containing zero or more format items.
arg0
Type: System Object
The first Object to format.
arg1
Type: System Object
The second Object to format.

Return Value

Type: String
A copy of the localized string in which the first and second format items have been replaced by the String equivalents of arg0 and arg1.
See Also