Interface IHeaderOptions
Options to configure a the site header chrome
Namespace: PnP.Core.Model.SharePoint
Assembly: PnP.Core.dll
Syntax
public interface IHeaderOptions
Options to configure a the site header chrome
public interface IHeaderOptions
Gets or sets the value of the header emphasis.
VariantThemeType Emphasis { get; set; }
VariantThemeType
|
Gets or sets a value that specifies whether the title in header is hidden on the site.
bool HideTitle { get; set; }
System.Boolean
|
Gets or sets the value of the header layout.
HeaderLayoutType Layout { get; set; }
HeaderLayoutType
|
Gets or sets the logo alignment of the site.
LogoAlignment LogoAlignment { get; set; }
LogoAlignment
|
Clears the header background image
void ClearHeaderBackgroundImage()
Clears the header background image
Task ClearHeaderBackgroundImageAsync()
Task
|
Sets the out of the box site's logo again. For group connected sites calling this method is equal to calling ResetSiteLogoThumbnail as logo and logo thumbnail are both set the same.
void ResetSiteLogo()
Sets the out of the box site's logo again. For group connected sites calling this method is equal to calling ResetSiteLogoThumbnail as logo and logo thumbnail are both set the same.
Task ResetSiteLogoAsync()
Task
|
Sets the out of the box site's logo thumbnail again. For group connected sites we'll default to using siteassets/siteIcon.jpg if that still exists.
void ResetSiteLogoThumbnail()
Sets the out of the box site's logo thumbnail again. For group connected sites we'll default to using siteassets/siteIcon.jpg if that still exists.
Task ResetSiteLogoThumbnailAsync()
Task
|
Sets the site's header background image. Only can be called when the header layout is set to extended.
void SetHeaderBackgroundImage(string fileName, Stream content, double focalX = null, double focalY = null, bool overwrite = false)
System.String
fileName
Name of your image file |
Stream
content
The contents of the file |
System.Double
focalX
X axis focal point for the header image |
System.Double
focalY
Y axis focal point for the header image |
System.Boolean
overwrite
Indicates whether the file should be overwritten if already existing. |
Sets the site's header background image. Only can be called when the header layout is set to extended.
Task SetHeaderBackgroundImageAsync(string fileName, Stream content, double focalX = null, double focalY = null, bool overwrite = false)
System.String
fileName
Name of your image file |
Stream
content
The contents of the file |
System.Double
focalX
X axis focal point for the header image |
System.Double
focalY
Y axis focal point for the header image |
System.Boolean
overwrite
Indicates whether the file should be overwritten if already existing. |
Task
|
Sets the site's logo to the provided image. For group connected sites calling this method is equal to calling SetSiteLogoThumbnail as logo and logo thumbnail are both set the same.
void SetSiteLogo(string fileName, Stream content, bool overwrite = false)
System.String
fileName
Name of your image file |
Stream
content
The contents of the file |
System.Boolean
overwrite
Indicates whether the file should be overwritten if already existing. |
Sets the site's logo to the provided image. For group connected sites calling this method is equal to calling SetSiteLogoThumbnail as logo and logo thumbnail are both set the same.
Task SetSiteLogoAsync(string fileName, Stream content, bool overwrite = false)
System.String
fileName
Name of your image file |
Stream
content
The contents of the file |
System.Boolean
overwrite
Indicates whether the file should be overwritten if already existing. |
Task
|
Sets the site's logo thumbnail to the provided image. For group connected sites setting the logo thumbnail will also automatically update the site logo.
void SetSiteLogoThumbnail(string fileName, Stream content, bool overwrite = false)
System.String
fileName
Name of your image file |
Stream
content
The contents of the file. Image should in a square aspect ratio |
System.Boolean
overwrite
Indicates whether the file should be overwritten if already existing. |
Sets the site's logo thumbnail to the provided image.
Task SetSiteLogoThumbnailAsync(string fileName, Stream content, bool overwrite = false)
System.String
fileName
Name of your image file |
Stream
content
The contents of the file. Image should in a square aspect ratio |
System.Boolean
overwrite
Indicates whether the file should be overwritten if already existing. |
Task
|