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)
Available in Sandboxed Solutions: No

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

  • length
    Type: System.Int32

    A 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.

See Also

Reference

SPMobileUtility Class

SPMobileUtility Members

GetEllipsisString Overload

Microsoft.SharePoint.Utilities Namespace