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
ColorIndexInLightMode
seems to be always -1
int ColorIndexInLightMode { get; set; }
Property Value
DisplayName
The footer display name
string DisplayName { get; set; }
Property Value
Emphasis
Gets or sets the value of the footer emphasis.
FooterVariantThemeType Emphasis { get; set; }
Property Value
Enabled
Gets or sets a value that specifies whether the footer is enabled on the site.
bool Enabled { get; set; }
Property Value
Layout
Gets or sets the value of the footer layout.
FooterLayoutType Layout { get; set; }
Property Value
LinkAlignment
specifies the alignment of links in the footer
FooterLinkAlignment LinkAlignment { get; set; }
Property Value
OverlayColor
Specifies the available overlay color types that can be applied to header or footer.
OverlayColorType OverlayColor { get; set; }
Property Value
OverlayGradientDirection
Defines the possible directions for an overlay gradient layout.
OverlayGradientDirectionType OverlayGradientDirection { get; set; }
Property Value
OverlayOpacity
Gets or sets the opacity level of the overlay [0-100].
int OverlayOpacity { get; set; }
Property Value
Methods
ClearFooterBackgroundImage()
Clears the footer background image
void ClearFooterBackgroundImage()
ClearFooterBackgroundImageAsync()
Clears the footer background image
Task ClearFooterBackgroundImageAsync()
Returns
ClearLogo()
Clears the footer logo
void ClearLogo()
ClearLogoAsync()
Clears the footer logo
Task ClearLogoAsync()
Returns
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
fileNamestringName of your image file
contentStreamThe contents of the file
focalXdoubleX axis focal point for the footer image
focalYdoubleY axis focal point for the footer image
overwriteboolIndicates 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
fileNamestringName of your image file
contentStreamThe contents of the file
focalXdoubleX axis focal point for the footer image
focalYdoubleY axis focal point for the footer image
overwriteboolIndicates whether the file should be overwritten if already existing.
Returns
SetLogo(string, Stream, bool)
Sets the footer's logo to the provided image.
void SetLogo(string fileName, Stream content, bool overwrite = false)
Parameters
fileNamestringName of your image file
contentStreamThe contents of the file
overwriteboolIndicates 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
fileNamestringName of your image file
contentStreamThe contents of the file
overwriteboolIndicates whether the file should be overwritten if already existing.