Click or drag to resize
ComponentViewModelTPropertiesTypeCreate Method
Creates a new instance of a ComponentViewModel.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static ComponentViewModel<TPropertiesType> Create(
	TreeNode page,
	TPropertiesType properties
)

Parameters

page
Type: CMS.DocumentEngineTreeNode
Represents a document on which this view model is used for a Page builder component.
properties
Type: TPropertiesType
Represents a properties for a Page builder component.

Return Value

Type: ComponentViewModelTPropertiesType
Remarks
Method should be used in case of rendering a Page builder component with only the view. In that case by convention the view model of type ComponentViewModelTPropertiesType is passed to the view.
See Also