Table of Contents

Class GridRowDefinition

Namespace
Dynamicweb.Rendering.Designer
Assembly
Dynamicweb.Core.dll
public class GridRowDefinition
Inheritance
GridRowDefinition
Inherited Members

Constructors

GridRowDefinition()

public GridRowDefinition()

GridRowDefinition(string)

public GridRowDefinition(string gridPath)

Parameters

gridPath string

Properties

ColumnCount

public int ColumnCount { get; set; }

Property Value

int

ColumnWidths

public IList<int>? ColumnWidths { get; init; }

Property Value

IList<int>

DefinitionPath

public string DefinitionPath { get; }

Property Value

string

Description

public string? Description { get; set; }

Property Value

string

Id

public required string Id { get; set; }

Property Value

string

ItemType

public string? ItemType { get; set; }

Property Value

string

Name

public required string Name { get; set; }

Property Value

string

Sort

public int Sort { get; set; }

Property Value

int

Template

public required string Template { get; set; }

Property Value

string

Thumbnail

public string? Thumbnail { get; set; }

Property Value

string

Methods

Delete(string, string)

public static void Delete(string gridPath, string definitionId)

Parameters

gridPath string
definitionId string

GetColumnWidthOrDefault(int)

public int GetColumnWidthOrDefault(int number)

Parameters

number int

Returns

int

GetGridRowDefinition(Layout, string, string)

public static GridRowDefinition? GetGridRowDefinition(Layout layout, string gridId, string definitionId)

Parameters

layout Layout
gridId string
definitionId string

Returns

GridRowDefinition

GetGridRowDefinition(string, string)

public static GridRowDefinition? GetGridRowDefinition(string gridPath, string definitionId)

Parameters

gridPath string
definitionId string

Returns

GridRowDefinition

GetGridRowDefinitions(Layout, string)

public static IEnumerable<GridRowDefinition>? GetGridRowDefinitions(Layout layout, string gridId)

Parameters

layout Layout
gridId string

Returns

IEnumerable<GridRowDefinition>

GetGridRowDefinitions(string)

public static IEnumerable<GridRowDefinition>? GetGridRowDefinitions(string gridPath)

Parameters

gridPath string

Returns

IEnumerable<GridRowDefinition>

GetTemplatePath()

Gets the file path relative to the /Files/Templates folder. E.g.: '/Designs/[Design]/[Layout]/Grid/[GridId]/RowTemplates/[Template]' or '/Designs/[Design]/Grid/[GridId]/RowTemplates/[Template]' or '/Designs/Grid/[GridId]/RowTemplates/[Template]'

public string GetTemplatePath()

Returns

string

The file path relative to the /Files/Templates folder.

IsReadonly(GridRowDefinition)

public static bool IsReadonly(GridRowDefinition definition)

Parameters

definition GridRowDefinition

Returns

bool

Save(GridRowDefinition)

public static void Save(GridRowDefinition definition)

Parameters

definition GridRowDefinition
To top