Share via


ScriptEditorWebPart.Content property

Gets or sets embedded HTML that provides content for this Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property Content As String
    Get
    Set
'Usage
Dim instance As ScriptEditorWebPart
Dim value As String

value = instance.Content

instance.Content = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public string Content { get; set; }

Property value

Type: System.String
String Embedded HTML.

Remarks

The Content property is read/write. Embedded content is stored as a string value in the database. There is no maximum length for this string, and there is no default value. Because the Content property contains the body of the Web Part, content can consist of any Web-based material. The Storage type of the Content property is Storage.Shared.

See also

Reference

ScriptEditorWebPart class

ScriptEditorWebPart members

Microsoft.SharePoint.WebPartPages namespace