Table of Contents

Class ParagraphInfoViewModel

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll

Represents a paragraph in the frontend, providing access to its metadata, content, and visual elements.

public class ParagraphInfoViewModel : ViewModelBase
Inheritance
ParagraphInfoViewModel
Inherited Members

Remarks

This view model is used to encapsulate the properties of a paragraph, enabling developers to render content dynamically in the frontend. It includes metadata (creation and update timestamps), content details (text, images), and associated configuration such as page relationships and color schemes.

Constructors

ParagraphInfoViewModel()

Initializes a new instance of the ParagraphInfoViewModel class.

public ParagraphInfoViewModel()

Properties

ColorScheme

Gets or sets the color scheme associated with the paragraph.

public ColorSchemeViewModel? ColorScheme { get; set; }

Property Value

ColorSchemeViewModel

A ColorSchemeViewModel object defining the color scheme configuration.

CreatedDate

Gets or sets the date and time when the paragraph was created.

public DateTime CreatedDate { get; set; }

Property Value

DateTime

A DateTime representing the creation timestamp of the paragraph.

ID

Gets or sets the unique identifier for the paragraph.

public int ID { get; set; }

Property Value

int

An integer representing the paragraph ID.

Image

Gets or sets the URL or path of the paragraph's associated image.

public string? Image { get; set; }

Property Value

string

A string representing the image path or URL.

ImageAlt

Gets or sets the alternative text for the paragraph's image.

public string? ImageAlt { get; set; }

Property Value

string

A string containing the alt attribute value for the image, used for accessibility.

ImageCaption

Gets or sets the caption displayed alongside the paragraph's image.

public string? ImageCaption { get; set; }

Property Value

string

A string containing the caption text for the image.

ImageFocalX

Gets or sets the horizontal focal point of the paragraph's image.

public int ImageFocalX { get; set; }

Property Value

int

An integer representing the X-axis focal point for the image.

ImageFocalY

Gets or sets the vertical focal point of the paragraph's image.

public int ImageFocalY { get; set; }

Property Value

int

An integer representing the Y-axis focal point for the image.

Gets or sets the URL linked to the paragraph's image.

public string? ImageLink { get; set; }

Property Value

string

A string representing the link URL for the image.

ImageLinkTarget

Gets or sets the target behavior for the image link.

public string? ImageLinkTarget { get; set; }

Property Value

string

A string specifying the target for the image link, such as "_blank" or "_self".

Item

Gets or sets the associated content item for the paragraph.

public ItemViewModel? Item { get; set; }

Property Value

ItemViewModel

An ItemViewModel representing the content or configuration for the paragraph.

Name

Gets or sets the name of the paragraph.

public string? Name { get; set; }

Property Value

string

A string representing the paragraph name, typically used for identification or display purposes.

PageID

Gets or sets the identifier of the page to which this paragraph belongs.

public int PageID { get; set; }

Property Value

int

An integer representing the ID of the parent page.

Sort

Gets or sets the sort order of the paragraph.

public int Sort { get; set; }

Property Value

int

An integer representing the sort order for displaying paragraph on the page it belongs.

Text

Gets or sets the text content of the paragraph.

public string? Text { get; set; }

Property Value

string

A string containing the primary textual content of the paragraph.

UpdatedDate

Gets or sets the date and time when the paragraph was last updated.

public DateTime UpdatedDate { get; set; }

Property Value

DateTime

A DateTime representing the last modification timestamp.

See Also

To top