ConvertHelper.RepairZero Method

HD.Common

ConvertHelperRepairZero Method Helper帮助文档
指定字符串的固定长度,如果字符串小于固定长度, 则在字符串的前面补足零,可设置的固定长度最大为9位

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static string RepairZero(
	string text,
	int limitedLength
)
Public Shared Function RepairZero ( 
	text As String,
	limitedLength As Integer
) As String
public:
static String^ RepairZero(
	String^ text, 
	int limitedLength
)
static member RepairZero : 
        text : string * 
        limitedLength : int -> string 

Parameters

text
Type: SystemString
原始字符串
limitedLength
Type: SystemInt32
字符串的固定长度

Return Value

Type: String

[Missing <returns> documentation for "M:HD.Common.ConvertHelper.RepairZero(System.String,System.Int32)"]

See Also

Reference