Table of Contents

Interface IFooterOptions

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

Options to configure a the site footer chrome.

public interface IFooterOptions

Properties

ColorIndexInDarkMode

seems to be always -1

int ColorIndexInDarkMode { get; set; }

Property Value

int

ColorIndexInLightMode

seems to be always -1

int ColorIndexInLightMode { get; set; }

Property Value

int

DisplayName

The footer display name

string DisplayName { get; set; }

Property Value

string

Emphasis

Gets or sets the value of the footer emphasis.

FooterVariantThemeType Emphasis { get; set; }

Property Value

FooterVariantThemeType

Enabled

Gets or sets a value that specifies whether the footer is enabled on the site.

bool Enabled { get; set; }

Property Value

bool

Layout

Gets or sets the value of the footer layout.

FooterLayoutType Layout { get; set; }

Property Value

FooterLayoutType

LinkAlignment

specifies the alignment of links in the footer

FooterLinkAlignment LinkAlignment { get; set; }

Property Value

FooterLinkAlignment

OverlayColor

Specifies the available overlay color types that can be applied to header or footer.

OverlayColorType OverlayColor { get; set; }

Property Value

OverlayColorType

OverlayGradientDirection

Defines the possible directions for an overlay gradient layout.

OverlayGradientDirectionType OverlayGradientDirection { get; set; }

Property Value

OverlayGradientDirectionType

OverlayOpacity

Gets or sets the opacity level of the overlay [0-100].

int OverlayOpacity { get; set; }

Property Value

int

Methods

ClearFooterBackgroundImage()

Clears the footer background image

void ClearFooterBackgroundImage()

ClearFooterBackgroundImageAsync()

Clears the footer background image

Task ClearFooterBackgroundImageAsync()

Returns

Task

Clears the footer logo

void ClearLogo()

ClearLogoAsync()

Clears the footer logo

Task ClearLogoAsync()

Returns

Task

SetFooterBackgroundImage(string, Stream, double, double, bool)

Sets the site's footer background image.

void SetFooterBackgroundImage(string fileName, Stream content, double focalX = 0, double focalY = 0, bool overwrite = false)

Parameters

fileName string

Name of your image file

content Stream

The contents of the file

focalX double

X axis focal point for the footer image

focalY double

Y axis focal point for the footer image

overwrite bool

Indicates whether the file should be overwritten if already existing.

SetFooterBackgroundImageAsync(string, Stream, double, double, bool)

Sets the site's footer background image.

Task SetFooterBackgroundImageAsync(string fileName, Stream content, double focalX = 0, double focalY = 0, bool overwrite = false)

Parameters

fileName string

Name of your image file

content Stream

The contents of the file

focalX double

X axis focal point for the footer image

focalY double

Y axis focal point for the footer image

overwrite bool

Indicates whether the file should be overwritten if already existing.

Returns

Task

SetLogo(string, Stream, bool)

Sets the footer's logo to the provided image.

void SetLogo(string fileName, Stream content, bool overwrite = false)

Parameters

fileName string

Name of your image file

content Stream

The contents of the file

overwrite bool

Indicates whether the file should be overwritten if already existing.

SetLogoAsync(string, Stream, bool)

Sets the footer's logo to the provided image.

Task SetLogoAsync(string fileName, Stream content, bool overwrite = false)

Parameters

fileName string

Name of your image file

content Stream

The contents of the file

overwrite bool

Indicates whether the file should be overwritten if already existing.

Returns

Task