WebPartFormFactor enum

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Form factor of the web part.

Remarks

This will change based on how the web part is used, not by the web part itself. In cases like web parts used in Teams tab or as App pages, it will have full size form factor. If a web part is render in a canvas, with other web parts, it will have a canvas web part form factor.

Fields

FullSize = 1

Full size form factor. This means the web part is rendered in full size, taking all space available in the page.

Standard = 0

Standard form factor. This means the web part is rendered in a canvas, potentially with other web parts. In this case, the width is determined by the container, and web part self-adjust for height.