自订日期和时间格式字串。
您也可以搭配支援复合格式的方法使用自订格式字串。
You can also use the custom format string with a method that supports composite formatting.
使用指定的格式字串评估资料系结运算式以显示结果。
Evaluates a data-binding expression using the specified format string to display the result.
例如,如果资料本身是数值,请使用其中一个数值格式字串。
For example, if the data is numeric in nature use one of the numeric format strings.
定义自订数值格式字串,使用零的预留位置(“0”)来表示字元零的数目下限。
Define a custom numeric format string that USES the zero placeholder (" 0 ") to represent the minimum number of zeros.
您可以将 “D”标准数值格式字串与有效位数规范一起使用,以前置字元零填补整数。
You can pad an integer with leading zeros by using the "D" standard numeric format string together with a precision specifier.
将这个执行个体的值转换为标准日期和时间格式规范和指定的特定文化特性格式资讯所支援的所有字串表示。
Converts the value of this instance to all the string representations supported by the standard date and time format specifiers and the specified culture-specific formatting information.
一般而言,如果应用程序使用没有对使用者显示的档名、保存性格式或符号资讯,字串作业的结果便不应该因文化特性而有所不同。
In general, if the application is working with file names, persistence formats, or symbolic information that is not displayed to the user, results of string operations should not vary by culture.
下列范例会建立新的资料物件,然后使用这个建构函式初始化具有字串和指定之资料格式的资料物件。
The following example creates a new data object and USES this constructor to initialize the data object with a string and a specified data format.
将这个执行个体的值转换为标准日期和时间格式规范所支援的所有字串表示。
Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.
以三个指定之物件的字串表示,取代指定之字串中的格式项目。
Replaces the format items in a specified string with the string representation of three specified objects.
以两个指定之物件的字串表示,取代指定之字串中的格式项目。
Replaces the format items in a specified string with the string representation of two specified objects.
每一个格式项目都会取代为对应物件引数的字串表示。
Each format item is replaced by the string representation of either of three arguments.
使用指定的格式,将这个执行个体的数值转换成它的对等字串表示。
Converts the numeric value of this instance to its equivalent string representation using the specified format.
以字串指定的格式传回资料。
使用指定的特定文化特性的格式资讯,将这个执行个体的值转换为它的对等字串表示。
Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
将这个执行个体的值转换为指定的标准日期和时间格式规范所支援的所有字串表示。
Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier.
检查以确定资料是否可为指定的格式,或资料是否可转换成指定的格式,资料格式由字串指定。
Checks to see whether the data is available in, or can be converted to, a specified format; the data format is specified by a string.
使用指定的格式和特定文化特性的格式资讯,将这个执行个体的数值转换成它的对等字串表示。
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
将格式化字串中的一或多个可编辑字元取代成指定字元。
Replaces a single character at or beyond the specified position with the specified character value.
将指定输入字串的字元加入至格式化字串的结尾,然后输出位置和描述性资讯。
Adds the characters in the specified input string to the end of the formatted string, and then outputs position and descriptive information.
描述如何操作和格式化字串。
传回格式化字串的子字串。
将格式化字串设为指定的输入字串。
将数字的字串表示(使用指定样式和的特定文化特性格式)转换为其对等的单精确度浮点数。
Converts the string representation of a number in a specified style and culture-specific format to its single-precision floating-point number equivalent.
从格式化字串清除所有的输入字元。
使用指定样式和文化特性特定格式,将数字的字串表示转换为其对等的双精度浮点数。
Converts the string representation of a number in a specified style and culture-specific format to its double-precision floating-point number equivalent.
将所指定文化特性专属格式之数字的字串表示,转换为它的相等16位元带正负号的整数。
Converts the string representation of a number in a specified culture-specific format to its 16-bit signed integer equivalent.
将数字的字串表示(使用指定之文化特性的格式),转换为它的对等8位元带正负号的整数。
Converts the string representation of a number in a specified culture-specific format to its 8-bit signed integer equivalent.
将数字的字串表示(使用指定之文化特性的格式),转换为它的对等8位元带正负号的整数。
Converts the string representation of a number in a specified culture-specific format to its 8-bit signed integer equivalent.
应用推荐