Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

Smart.Format

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static string Format(string format, params Object[] args);

Parameters

Parameter Description
format A composite format string.
args The objects to format.

Returns

string The format items in the specified format string replaced with the string representation or the corresponding object.

Description

Replaces the format items in the specified format string with the string representation or the corresponding object.

Use Smart.Default or SmartFormatter for more Format(...) overloads.


Declaration

public static string Format(IFormatProvider provider, string format, params Object[] args);

Parameters

Parameter Description
provider The IFormatProvider to use.
format A composite format string.
args The objects to format.

Returns

string The format items in the specified format string replaced with the string representation or the corresponding object.

Description

Replaces the format items in the specified format string with the string representation or the corresponding object.

Use Smart.Default or SmartFormatter for more Format(...) overloads.


Declaration

public static string Format(string format, Object arg0, Object arg1, Object arg2);

Parameters

Parameter Description
format A composite format string.
arg0 The first object to format.
arg1 The second object to format.
arg2 The third object to format.

Returns

string The format items in the specified format string replaced with the string representation or the corresponding object.

Description

Replaces the format items in the specified format string with the string representation or the corresponding object.

Use Smart.Default or SmartFormatter for more Format(...) overloads.


Declaration

public static string Format(string format, Object arg0, Object arg1);

Parameters

Parameter Description
format A composite format string.
arg0 The first object to format.
arg1 The second object to format.

Returns

string The format items in the specified format string replaced with the string representation or the corresponding object.

Description

Replaces the format items in the specified format string with the string representation or the corresponding object.

Use Smart.Default or SmartFormatter for more Format(...) overloads.


Declaration

public static string Format(string format, Object arg0);

Parameters

Parameter Description
format A composite format string.
arg0 The object to format.

Returns

string The format items in the specified format string replaced with the string representation or the corresponding object.

Description

Replaces the format items in the specified format string with the string representation or the corresponding object.

Use Smart.Default or SmartFormatter for more Format(...) overloads.