SPMobileUtility.GetEllipsisString method (String, Int32, String)
傳回指定的字串到指定長度的截斷的版與省略符號字元附加或整個字串,如果它不會超過指定的長度。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetEllipsisString ( _
source As String, _
length As Integer, _
symbol As String _
) As String
'用途
Dim source As String
Dim length As Integer
Dim symbol As String
Dim returnValue As String
returnValue = SPMobileUtility.GetEllipsisString(source, _
length, symbol)
public static string GetEllipsisString(
string source,
int length,
string symbol
)
參數
source
Type: System.String要截斷或傳回的字串。
length
Type: System.Int3232 位元整數,表示要傳回的字元數目上限。
symbol
Type: System.String字串,包含所要使用省略符號字元的符號。
傳回值
Type: System.String
截斷後的字串或如果它不會超過指定的長度的整個字串。