Class PageViewModelExtensions
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Provides extension methods for the PageViewModel.
public static class PageViewModelExtensions
- Inheritance
-
PageViewModelExtensions
- Inherited Members
Methods
GetButtonStyle(PageViewModel?)
Gets the link to the css file with the area's button styles.
public static string? GetButtonStyle(this PageViewModel? pageViewModel)
Parameters
pageViewModel
PageViewModel
Returns
- string
E.g. /Files/System/Styles/Buttons/SwiftStyle.css
GetColorSchemeStyle(PageViewModel?)
Gets the link to the css file with the area's color scheme group.
public static string? GetColorSchemeStyle(this PageViewModel? pageViewModel)
Parameters
pageViewModel
PageViewModel
Returns
- string
E.g. /Files/System/Styles/ColorSchemes/SwiftStyle.css
GetTypographyStyle(PageViewModel?)
Gets the link to the css file with the area's typography.
public static string? GetTypographyStyle(this PageViewModel? pageViewModel)
Parameters
pageViewModel
PageViewModel
Returns
- string
E.g. /Files/System/Styles/Typography/SwiftStyle.css
TryGetButtonStyle(PageViewModel?, out string?)
Returns true if a button style is specified on the area and the link to the css is assigned to the passed out parameter.
public static bool TryGetButtonStyle(this PageViewModel? pageViewModel, out string? value)
Parameters
pageViewModel
PageViewModelvalue
string
Returns
- bool
true
if the button style is found and the value will have a value of e.g. /Files/System/Styles/Typography/SwiftStyle.css, otherwisefalse
and value will benull
TryGetColorSchemeStyle(PageViewModel?, out string?)
Returns true if a color scheme group is specified on the area and the link to the css is assigned to the passed out parameter.
public static bool TryGetColorSchemeStyle(this PageViewModel? pageViewModel, out string? value)
Parameters
pageViewModel
PageViewModelvalue
string
Returns
- bool
true
if the color scheme is found and the value will have a value of e.g. /Files/System/Styles/ColorSchemes/SwiftStyle.css, otherwisefalse
and value will benull
TryGetTypographyStyle(PageViewModel?, out string?)
Returns true if a typography is specified on the area and the link to the css is assigned to the passed out parameter.
public static bool TryGetTypographyStyle(this PageViewModel? pageViewModel, out string? value)
Parameters
pageViewModel
PageViewModelvalue
string
Returns
- bool
true
if the typography is found and the value will have a value of e.g. /Files/System/Styles/Typography/SwiftStyle.css, otherwisefalse
and value will benull