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

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

public string FormatString(
	string strKey,
	Object arg0
)

Parameters

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

Return Value

Type: String
A copy of the localized string in which the first format item has been replaced by the String equivalent of arg0.
See Also