Table of Contents

Interface ICanvasSection

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Represents a section on the canvas

public interface ICanvasSection

Properties

Collapsible

Is this section collapsible?

bool Collapsible { get; set; }

Property Value

bool

Columns

PnP.Core.Model.SharePoint.CanvasColumn instances that are part of this section

List<ICanvasColumn> Columns { get; }

Property Value

List<ICanvasColumn>

Controls

Controls hosted in this section

List<ICanvasControl> Controls { get; }

Property Value

List<ICanvasControl>

DefaultColumn

The default PnP.Core.Model.SharePoint.CanvasColumn of this section

ICanvasColumn DefaultColumn { get; }

Property Value

ICanvasColumn

DisplayName

DisplayName of the collapsible section

string DisplayName { get; set; }

Property Value

string

HeadingLevel

HeadingLevel of the collapsible section. 2, 3, or 4 corresponding to h2, h3, and h4. Default is 2.

int HeadingLevel { get; set; }

Property Value

int

IconAlignment

Sets the alignment of the collaps icon, left/right or not configured

IconAlignment? IconAlignment { get; set; }

Property Value

IconAlignment?

IsExpanded

Is the collapsible section expanded?

bool IsExpanded { get; set; }

Property Value

bool

Order

Order in which this section is presented on the page

float Order { get; set; }

Property Value

float

Page

The IPage instance holding this section

IPage Page { get; }

Property Value

IPage

ShowDividerLine

Show a devided line for this collapsible section?

bool ShowDividerLine { get; set; }

Property Value

bool

Type

Type of the section

CanvasSectionTemplate Type { get; set; }

Property Value

CanvasSectionTemplate

VerticalSectionColumn

A page can contain one section that has a vertical section column...use this attribute to get that column

ICanvasColumn VerticalSectionColumn { get; }

Property Value

ICanvasColumn

ZoneEmphasis

Color emphasis of the section

int ZoneEmphasis { get; set; }

Property Value

int