Table of Contents

Class Paragraph

Namespace
Dynamicweb.Content
Assembly
Dynamicweb.dll

The Paragraph class models the concept of Paragraphs on a given Page (WebPage)

[PermissionEntity("Paragraph")]
public class Paragraph : Entity<int>, IChangeTracking, IDisplayName, IPermissionEntity, IPermissionEntityLookup
Inheritance
Paragraph
Implements
Inherited Members
Extension Methods

Constructors

Paragraph()

Initializes a new instance of the Paragraph class.

public Paragraph()

Paragraph(int)

Initializes a new instance of the Paragraph class with a relation to a page with the specified id

public Paragraph(int pageId)

Parameters

pageId int

The id of the page to which the Paragraph will be associated

Properties

ApprovalState

Gets or sets the state of the approval.

public int ApprovalState { get; set; }

Property Value

int

The state of the approval.

ApprovalType

Gets the type of approval, draft, versioning or a workflow.

public int ApprovalType { get; }

Property Value

int

The type of the approval.

ColorSchemeId

The id of the color scheme ColorScheme.

public string ColorSchemeId { get; set; }

Property Value

string

Container

Gets or sets the container.

public string Container { get; set; }

Property Value

string

The container.

CopyOf

Gets or sets the id of the Paragraph for which this is a copy of

public int CopyOf { get; set; }

Property Value

int

a value indicating the id of the Paragraph for which this is a copy of

GlobalCount

Gets the global count.

public int GlobalCount { get; }

Property Value

int

The global count.

Remarks

Lazy loaded, wrap in HasGlobal conditional before use

GlobalID

Gets or sets the global ID.

public int GlobalID { get; set; }

Property Value

int

The global ID.

GlobalRecordGlobalID

Gets or sets the global record global ID.

public int GlobalRecordGlobalID { get; set; }

Property Value

int

The global record global ID.

GlobalRecordPageID

Gets or sets the global record page ID.

public int GlobalRecordPageID { get; set; }

Property Value

int

The global record page ID.

GlobalRecordParagraphID

Gets or sets the global record paragraph ID.

public int GlobalRecordParagraphID { get; set; }

Property Value

int

The global record paragraph ID.

GlobalRecordSort

Gets or sets the global record sort.

public int GlobalRecordSort { get; set; }

Property Value

int

The global record sort.

GridRowColumn

Gets or sets the column number in which this paragraph is placed. Only usable if the paragraph belongs to a GridRow which is done by setting the GridRowId property.

public int GridRowColumn { get; set; }

Property Value

int

GridRowId

Gets or sets the id of the GridRow to which this paragraph belongs.

public int GridRowId { get; set; }

Property Value

int

HasGlobal

Gets a value indicating whether this instance has global.

public bool HasGlobal { get; }

Property Value

bool

true if this instance has global; otherwise, false.

Header

Gets or sets the header.

public string Header { get; set; }

Property Value

string

The header.

HideForDesktops

Gets or sets a value indicating whether this page should be hidden for desktops - that is devices not detected as phone or tablet.

public bool HideForDesktops { get; set; }

Property Value

bool

true if hide for desktops; otherwise, false.

HideForPhones

Gets or sets a value indicating whether this page should be hidden for phones.

public bool HideForPhones { get; set; }

Property Value

bool

true if hide for phones; otherwise, false.

HideForTablets

Gets or sets a value indicating whether this page should be hidden for tablets.

public bool HideForTablets { get; set; }

Property Value

bool

true if hide for tablets; otherwise, false.

Icon

Gets the paragraph icon showing in backend.

public KnownIcon Icon { get; }

Property Value

KnownIcon

Returns either item type icon either module icon either ordinary paragraph icon.

IconColor

Gets the paragraph icon color showing in backend.

public KnownColor IconColor { get; }

Property Value

KnownColor

Returns either item type icon color either module icon color either ordinary paragraph icon color.

Image

Gets or sets the image.

public string Image { get; set; }

Property Value

string

The image.

ImageAlt

Gets or sets the image mouse over.

public string ImageAlt { get; set; }

Property Value

string

The image mouse over.

ImageCaption

Gets or sets the image caption.

public string ImageCaption { get; set; }

Property Value

string

The image caption.

ImageLinkTarget

Gets or sets the image link target.

public string ImageLinkTarget { get; set; }

Property Value

string

The image link target.

ImageTarget

Gets or sets the image target.

public string ImageTarget { get; set; }

Property Value

string

The image target.

ImageUrl

Gets or sets the image URL.

public string ImageUrl { get; set; }

Property Value

string

The image URL.

Index

Gets or sets a value indicating whether this Paragraph is index.

public bool Index { get; set; }

Property Value

bool

true if index; otherwise, false.

IsGlobal

Gets a value indicating whether this instance is global.

public bool IsGlobal { get; }

Property Value

bool

true if this instance is global; otherwise, false.

IsLockedByMaster

public bool IsLockedByMaster { get; }

Property Value

bool

IsMaster

Gets a value indicating whether this instance is master.

public bool IsMaster { get; }

Property Value

bool

true if this instance is master; otherwise, false.

IsMoving

Gets or sets a value indicating if this Paragraph is currently in the process of being moved between Pages

public bool IsMoving { get; set; }

Property Value

bool

IsTemplate

Gets or sets a value indicating whether this instance is template.

public bool IsTemplate { get; set; }

Property Value

bool

true if this instance is template; otherwise, false.

Item

Gets the item of the current paragraph

public Item Item { get; }

Property Value

Item

Item

ItemId

Gets or sets the Id of the associated content item.

public string ItemId { get; set; }

Property Value

string

ItemType

Gets or sets the type of the associated item.

public string ItemType { get; set; }

Property Value

string

Languages

Gets the language versions of the paragraph.

public IEnumerable<Paragraph> Languages { get; }

Property Value

IEnumerable<Paragraph>

The languages. Returns

null
(Nothing in Visual Basic) if the paragraph is not a master.

MasterParagraphID

Gets or sets the master paragraph ID.

public int MasterParagraphID { get; set; }

Property Value

int

The master paragraph ID.

MasterType

Gets or sets the type of the master.

public MasterType MasterType { get; set; }

Property Value

MasterType

The type of the master. Only has an affect on master paragraphs

ModuleProperties

Gets or sets the module properties.

public Properties ModuleProperties { get; set; }

Property Value

Properties

The module properties.

ModuleSettings

Gets or sets the module settings.

public string ModuleSettings { get; set; }

Property Value

string

The module settings.

ModuleSystemName

Gets or sets the name of the module system.

public string ModuleSystemName { get; set; }

Property Value

string

The name of the module system.

Page

Gets the Page to which this Paragraph belongs

public Page Page { get; }

Property Value

Page

The page.

PageID

Gets or sets the id of the page to which this Paragraph belongs

public int PageID { get; set; }

Property Value

int

The page ID.

Preview

Gets or sets a value indicating whether this Paragraph is preview.

public bool Preview { get; set; }

Property Value

bool

true if preview; otherwise, false.

RawContainer

Gets the container raw value.

public string RawContainer { get; }

Property Value

string

ShowParagraph

Gets or sets a value indicating whether [show paragraph].

public bool ShowParagraph { get; set; }

Property Value

bool

true if [show paragraph]; otherwise, false.

Remarks

By design, grid row paragraphs must be active.

Sort

Gets or sets the sort.

public int Sort { get; set; }

Property Value

int

The sort.

Template

Gets or sets the template.

public string Template { get; set; }

Property Value

string

The template.

TemplateDescription

Gets or sets the template description.

public string TemplateDescription { get; set; }

Property Value

string

The template description.

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string

The text.

UniqueId

Gets or sets the unique identifier for paragraphs used in copy and deploy scenarios.

public Guid UniqueId { get; set; }

Property Value

Guid

The unique identifier.

ValidFrom

Gets or sets the valid from.

public DateTime ValidFrom { get; set; }

Property Value

DateTime

The valid from.

ValidTo

Gets or sets the valid to.

public DateTime ValidTo { get; set; }

Property Value

DateTime

The valid to.

Variation

Gets or sets the variation of this paragraph in context of an OMC.

public int Variation { get; set; }

Property Value

int

The variation - 1-N depending on the setup.

Remarks

Variation = 1 is the original.

VersionTimeStamp

Gets or sets the version time stamp.

public DateTime VersionTimeStamp { get; set; }

Property Value

DateTime

The version time stamp.

Methods

GetDisplayName()

Yields a human-readable name for rendering.

public string GetDisplayName()

Returns

string

name

MarkAsModified()

public void MarkAsModified()
To top