Share via


HtmlField Class

A publishing-extensible field type for defining rich HTML content.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPField
    Microsoft.SharePoint.SPFieldMultiLineText
      Microsoft.SharePoint.Publishing.Fields.BaseRichFieldType
        Microsoft.SharePoint.Publishing.Fields.HtmlField

Namespace:  Microsoft.SharePoint.Publishing.Fields
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class HtmlField _
    Inherits BaseRichFieldType
'Usage
Dim instance As HtmlField
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class HtmlField : BaseRichFieldType

Remarks

A string of HTML is its value class.

It usesthe RichHtmlField object as the field control to edit and display it.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

HtmlField Members

Microsoft.SharePoint.Publishing.Fields Namespace

RichImageField

ImageFieldValue