Share via


SPMobileUtility.GetEllipsisString method (String, Int32, String)

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, _
    symbol As String _
) As String
'Usage
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
)

Parameters

  • length
    Type: System.Int32

    A 32-bit integer that represents the maximum number of characters to return.

  • symbol
    Type: System.String

    A string that contains the symbol to use for the ellipsis characters.

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