StringHelperGetLeftStr Method | Helper帮助文档 |
从字符串左边起给定的位置截取字符串
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static string GetLeftStr( string str, int len )
Public Shared Function GetLeftStr ( str As String, len As Integer ) As String
public: static String^ GetLeftStr( String^ str, int len )
static member GetLeftStr : str : string * len : int -> string
Parameters
- str
- Type: SystemString
给定要截取的字符串内容 - len
- Type: SystemInt32
截取的起始位置
Return Value
Type: String截取后的字符串 string
See Also