SPMobileUtility.GetEllipsisString method (String, Int32)
Returns a truncated version of the specified string up to the specified length with ellipsis characters appended, or the entire string if it does not exceed the specified length.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetEllipsisString ( _
source As String, _
length As Integer _
) As String
'Usage
Dim source As String
Dim length As Integer
Dim returnValue As String
returnValue = SPMobileUtility.GetEllipsisString(source, _
length)
public static string GetEllipsisString(
string source,
int length
)
Parameters
source
Type: System.StringThe string to truncate or return.
length
Type: System.Int32A 32-bit integer that represents the maximum number of characters to return.
Return value
Type: System.String
The truncated string, or the entire string if it does not exceed the specified length.