PageValidate.Text_Length Method

HD.Common

PageValidateText_Length Method Helper帮助文档
计算文本长度,区分中英文字符,中文算两个长度,英文算一个长度

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

public static int Text_Length(
	string Text
)
Public Shared Function Text_Length ( 
	Text As String
) As Integer
public:
static int Text_Length(
	String^ Text
)
static member Text_Length : 
        Text : string -> int 

Parameters

Text
Type: SystemString
需计算长度的字符串

Return Value

Type: Int32
int
See Also

Reference