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
ColumnWidths
public IList<int>? ColumnWidths { get; init; }
Property Value
ContainerWidth
public int ContainerWidth { get; set; }
Property Value
DefinitionPath
public string DefinitionPath { get; }
Property Value
Description
public string? Description { get; set; }
Property Value
EnableBackgroundImage
public bool EnableBackgroundImage { get; set; }
Property Value
EnableBottomSpacing
public bool EnableBottomSpacing { get; set; }
Property Value
EnableContainerWidth
public bool EnableContainerWidth { get; set; }
Property Value
EnableGapSettings
public bool EnableGapSettings { get; set; }
Property Value
EnableMobileLayout
public bool EnableMobileLayout { get; set; }
Property Value
EnableMobileSort
public bool EnableMobileSort { get; set; }
Property Value
EnableTopSpacing
public bool EnableTopSpacing { get; set; }
Property Value
EnableVerticalAlignment
public bool EnableVerticalAlignment { get; set; }
Property Value
Id
public required string Id { get; set; }
Property Value
ItemType
public string? ItemType { get; set; }
Property Value
Name
public required string Name { get; set; }
Property Value
Sort
public int Sort { get; set; }
Property Value
Template
public required string Template { get; set; }
Property Value
Thumbnail
public string? Thumbnail { get; set; }
Property Value
Methods
Delete(string, string)
public static void Delete(string gridPath, string definitionId)
Parameters
GetColumnWidthOrDefault(int)
public int GetColumnWidthOrDefault(int number)
Parameters
number
int
Returns
GetGridRowDefinition(Layout, string, string)
public static GridRowDefinition? GetGridRowDefinition(Layout layout, string gridId, string definitionId)
Parameters
Returns
GetGridRowDefinition(string, string)
public static GridRowDefinition? GetGridRowDefinition(string gridPath, string definitionId)
Parameters
Returns
GetGridRowDefinitions(Layout, string)
public static IEnumerable<GridRowDefinition>? GetGridRowDefinitions(Layout layout, string gridId)
Parameters
Returns
GetGridRowDefinitions(string)
public static IEnumerable<GridRowDefinition>? GetGridRowDefinitions(string gridPath)
Parameters
gridPath
string
Returns
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
Save(GridRowDefinition)
public static void Save(GridRowDefinition definition)
Parameters
definition
GridRowDefinition