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
BackgroundImageDefaultValue
public string? BackgroundImageDefaultValue { get; set; }
Property Value
- string
BottomSpacingDefaultValue
public int? BottomSpacingDefaultValue { get; set; }
Property Value
- int?
ColumnCount
public int ColumnCount { get; set; }
Property Value
- int
ColumnWidths
public IList<int>? ColumnWidths { get; init; }
Property Value
- IList<int>
ContainerWidth
public int ContainerWidth { get; set; }
Property Value
- int
ContainerWidthDefaultValue
public int? ContainerWidthDefaultValue { get; set; }
Property Value
- int?
DefinitionPath
public string DefinitionPath { get; }
Property Value
- string
Description
public string? Description { get; set; }
Property Value
- string
EnableBackgroundImage
public bool EnableBackgroundImage { get; set; }
Property Value
- bool
EnableBottomSpacing
public bool EnableBottomSpacing { get; set; }
Property Value
- bool
EnableContainerWidth
public bool EnableContainerWidth { get; set; }
Property Value
- bool
EnableDesktopLayout
public bool EnableDesktopLayout { get; set; }
Property Value
- bool
EnableGapSettings
public bool EnableGapSettings { get; set; }
Property Value
- bool
EnableMobileLayout
public bool EnableMobileLayout { get; set; }
Property Value
- bool
EnableMobileSort
public bool EnableMobileSort { get; set; }
Property Value
- bool
EnableTopSpacing
public bool EnableTopSpacing { get; set; }
Property Value
- bool
EnableVerticalAlignment
public bool EnableVerticalAlignment { get; set; }
Property Value
- bool
GapSettingsDefaultValue
public string? GapSettingsDefaultValue { get; set; }
Property Value
- string
Id
public required string Id { get; set; }
Property Value
- string
ItemType
public string? ItemType { get; set; }
Property Value
- string
MobileLayoutDefaultValue
public string? MobileLayoutDefaultValue { get; set; }
Property Value
- string
MobileSortDefaultValue
public string? MobileSortDefaultValue { 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
TopSpacingDefaultValue
public int? TopSpacingDefaultValue { get; set; }
Property Value
- int?
VerticalAlignmentDefaultValue
public string? VerticalAlignmentDefaultValue { get; set; }
Property Value
- string
WidthType
public ColumnWidthType WidthType { get; set; }
Property Value
- ColumnWidthType
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
GetDefaultMobileColumnOrder(int, int)
public static int GetDefaultMobileColumnOrder(int columnCount, int number)
Parameters
columnCount
int
number
int
Returns
- int
GetDefaultMobileColumnWidth(int)
public static int GetDefaultMobileColumnWidth(int columnCount)
Parameters
columnCount
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