SPListItem.GetFormattedValue Method
Returns the specified field value, including formatting.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function GetFormattedValue ( _
fieldName As String _
) As String
'Usage
Dim instance As SPListItem
Dim fieldName As String
Dim returnValue As String
returnValue = instance.GetFormattedValue(fieldName)
public string GetFormattedValue(
string fieldName
)
Parameters
fieldName
Type: System.StringA string that contains either the internal name or the display name of the field.
Return Value
Type: System.String
A string that contains the formatted value.