Class ApiBlockGridItem
Represents a block grid item in the Delivery API.
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class ApiBlockGridItem : ApiBlockItem
Constructors
View SourceApiBlockGridItem(IApiElement, IApiElement?, int, int, int, IEnumerable<ApiBlockGridArea>)
Initializes a new instance of the ApiBlockGridItem class.
Declaration
public ApiBlockGridItem(IApiElement content, IApiElement? settings, int rowSpan, int columnSpan, int areaGridColumns, IEnumerable<ApiBlockGridArea> areas)
Parameters
| Type | Name | Description |
|---|---|---|
| IApiElement | content | The content element of the block. |
| IApiElement | settings | The optional settings element of the block. |
| int | rowSpan | The number of rows the block spans. |
| int | columnSpan | The number of columns the block spans. |
| int | areaGridColumns | The number of columns in the block's area grid. |
| IEnumerable<ApiBlockGridArea> | areas | The areas within the block. |
Properties
View SourceAreaGridColumns
Gets the number of columns in the block's area grid.
Declaration
public int AreaGridColumns { get; }
Property Value
| Type | Description |
|---|---|
| int |
Areas
Gets the areas within the block.
Declaration
public IEnumerable<ApiBlockGridArea> Areas { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ApiBlockGridArea> |
ColumnSpan
Gets the number of columns the block spans.
Declaration
public int ColumnSpan { get; }
Property Value
| Type | Description |
|---|---|
| int |
RowSpan
Gets the number of rows the block spans.
Declaration
public int RowSpan { get; }
Property Value
| Type | Description |
|---|---|
| int |