HtmlField.GetFieldValueAsText Method
Gets the string value with any reusable content sections expanded and all HTML tags removed.
Namespace: Microsoft.SharePoint.Publishing.Fields
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Overrides Function GetFieldValueAsText ( _
value As Object _
) As String
'Usage
Dim instance As HtmlField
Dim value As Object
Dim returnValue As String
returnValue = instance.GetFieldValueAsText(value)
public override string GetFieldValueAsText(
Object value
)
Parameters
value
Type: System.ObjectThe string to convert to text.
Return Value
Type: System.String
Remarks
If the HTML in the value input has any special markup that identifies reusable content sections, the returned value retrieves these content sections with their current values expanded and all HTML tags removed.