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.
Paragraph(int)
Initializes a new instance of the Paragraph class with a relation to a page with the specified id
Parameters
pageId
intThe id of the page to which the Paragraph will be associated
Properties
ApprovalState
Gets or sets the state of the approval.
Property Value
- int
The state of the approval.
ApprovalType
Gets the type of approval, draft, versioning or a workflow.
Property Value
- int
The type of the approval.
ColorSchemeId
The id of the color scheme Color
Property Value
Container
Gets or sets the container.
Property Value
- string
The container.
CopyOf
Gets or sets the id of the Paragraph for which this is a copy of
Property Value
- int
a value indicating the id of the Paragraph for which this is a copy of
GlobalCount
Gets the global count.
Property Value
- int
The global count.
Remarks
Lazy loaded, wrap in Has
GlobalID
Gets or sets the global ID.
Property Value
- int
The global ID.
GlobalRecordGlobalID
Gets or sets the global record global ID.
Property Value
- int
The global record global ID.
GlobalRecordPageID
Gets or sets the global record page ID.
Property Value
- int
The global record page ID.
GlobalRecordParagraphID
Gets or sets the global record paragraph ID.
Property Value
- int
The global record paragraph ID.
GlobalRecordSort
Gets or sets the global record sort.
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 Grid
Property Value
GridRowId
Gets or sets the id of the Grid
Property Value
HasGlobal
Gets a value indicating whether this instance has global.
Property Value
- bool
true
if this instance has global; otherwise,false
.
Header
Gets or sets the header.
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.
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.
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.
Property Value
- bool
true
if hide for tablets; otherwise,false
.
Icon
Gets the paragraph icon showing in backend.
Property Value
- Known
Icon Returns either item type icon either module icon either ordinary paragraph icon.
IconColor
Gets the paragraph icon color showing in backend.
Property Value
- Known
Color Returns either item type icon color either module icon color either ordinary paragraph icon color.
Image
Gets or sets the image.
Property Value
- string
The image.
ImageAlt
Gets or sets the image mouse over.
Property Value
- string
The image mouse over.
ImageCaption
Gets or sets the image caption.
Property Value
- string
The image caption.
ImageLinkTarget
Gets or sets the image link target.
Property Value
- string
The image link target.
ImageTarget
Gets or sets the image target.
Property Value
- string
The image target.
ImageUrl
Gets or sets the image URL.
Property Value
- string
The image URL.
Index
Gets or sets a value indicating whether this Paragraph is index.
Property Value
- bool
true
if index; otherwise,false
.
IsGlobal
Gets a value indicating whether this instance is global.
Property Value
- bool
true
if this instance is global; otherwise,false
.
IsLockedByMaster
Property Value
IsMaster
Gets a value indicating whether this instance is master.
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
Property Value
IsTemplate
Gets or sets a value indicating whether this instance is template.
Property Value
- bool
true
if this instance is template; otherwise,false
.
Item
Gets the item of the current paragraph
Property Value
- Item
Item
ItemId
Gets or sets the Id of the associated content item.
Property Value
ItemType
Gets or sets the type of the associated item.
Property Value
Languages
Gets the language versions of the paragraph.
Property Value
- IEnumerable<Paragraph>
The languages. Returns
(Nothing in Visual Basic) if the paragraph is not a master.null
MasterParagraphID
Gets or sets the master paragraph ID.
Property Value
- int
The master paragraph ID.
MasterType
Gets or sets the type of the master.
Property Value
- Master
Type The type of the master. Only has an affect on master paragraphs
ModuleProperties
Gets or sets the module properties.
Property Value
- Properties
The module properties.
ModuleSettings
Gets or sets the module settings.
Property Value
- string
The module settings.
ModuleSystemName
Gets or sets the name of the module system.
Property Value
- string
The name of the module system.
Page
Gets the Page to which this Paragraph belongs
Property Value
- Page
The page.
PageID
Gets or sets the id of the page to which this Paragraph belongs
Property Value
- int
The page ID.
Preview
Gets or sets a value indicating whether this Paragraph is preview.
Property Value
- bool
true
if preview; otherwise,false
.
RawContainer
Gets the container raw value.
Property Value
ShowParagraph
Gets or sets a value indicating whether [show paragraph].
Property Value
- bool
true
if [show paragraph]; otherwise,false
.
Remarks
By design, grid row paragraphs must be active.
Sort
Gets or sets the sort.
Property Value
- int
The sort.
Template
Gets or sets the template.
Property Value
- string
The template.
TemplateDescription
Gets or sets the template description.
Property Value
- string
The template description.
Text
Gets or sets the text.
Property Value
- string
The text.
UniqueId
Gets or sets the unique identifier for paragraphs used in copy and deploy scenarios.
Property Value
- Guid
The unique identifier.
ValidFrom
Gets or sets the valid from.
Property Value
- Date
Time The valid from.
ValidTo
Gets or sets the valid to.
Property Value
- Date
Time The valid to.
Variation
Gets or sets the variation of this paragraph in context of an OMC.
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.
Property Value
- Date
Time The version time stamp.
Methods
GetDisplayName()
Yields a human-readable name for rendering.
Returns
- string
name