CogLocalizer FormatString Method (Type, String, Object)Cognex VisionPro 9.20
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: 80.0.0.0 (80.0.0.0)
Syntax

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

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
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