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

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

public static string FormatString(
	Type source,
	string strKey,
	Object arg0,
	Object arg1,
	Object arg2
)

Parameters

source
Type: System Type
Type associated with strKey resource. Type must reside in the same assembly as the string resource where strKey is located.
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.
arg2
Type: System Object
The third Object to format.

Return Value

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