Class PageImageOptions
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Defines the options to configure an image
public class PageImageOptions
- Inheritance
-
PageImageOptions
- Inherited Members
Properties
Alignment
Defines the alignment of the image
public PageImageAlignment Alignment { get; set; }
Property Value
AlternativeText
Alternative text of the image
public string AlternativeText { get; set; }
Property Value
Caption
Image caption to show underneath the embedded image
public string Caption { get; set; }
Property Value
Height
Defines the actual height of the image
public int? Height { get; set; }
Property Value
- int?
Link
Link the image should point to on click
public string Link { get; set; }
Property Value
Width
Defines the actual width of the image
public int? Width { get; set; }
Property Value
- int?
WidthPercentage
Defines the width of the image relative to editor control it's placed in. The Width, Height and this property need to be all set to end up to get a functional inline image. When using PnP.Core.Model.SharePoint.Page.EditorType equal to CK4 then the WidthPercentage property is not used.
public int? WidthPercentage { get; set; }
Property Value
- int?