Class ApiBlockGridArea
Represents an area within a block grid item in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class ApiBlockGridArea
Constructors
View SourceApiBlockGridArea(string, int, int, IEnumerable<ApiBlockGridItem>)
Initializes a new instance of the ApiBlockGridArea class.
Declaration
public ApiBlockGridArea(string alias, int rowSpan, int columnSpan, IEnumerable<ApiBlockGridItem> items)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias | The alias of the area. |
| int | rowSpan | The number of rows the area spans. |
| int | columnSpan | The number of columns the area spans. |
| IEnumerable<ApiBlockGridItem> | items | The block grid items within the area. |
Properties
View SourceAlias
Gets the alias of the area.
Declaration
public string Alias { get; }
Property Value
| Type | Description |
|---|---|
| string |
ColumnSpan
Gets the number of columns the area spans.
Declaration
public int ColumnSpan { get; }
Property Value
| Type | Description |
|---|---|
| int |
Items
Gets the block grid items within the area.
Declaration
public IEnumerable<ApiBlockGridItem> Items { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ApiBlockGridItem> |
RowSpan
Gets the number of rows the area spans.
Declaration
public int RowSpan { get; }
Property Value
| Type | Description |
|---|---|
| int |