Class TypographyHelper
- Namespace
- Dynamicweb.Content.Styles
- Assembly
- Dynamicweb.dll
public static class TypographyHelper
- Inheritance
-
TypographyHelper
- Inherited Members
Methods
Delete(string)
Deletes the typography by id
public static void Delete(string typographyId)
Parameters
typographyId
stringThe typography id
Exceptions
- ArgumentNullException
- InvalidOperationException
Thrown if the deleted typography is used
GetAllTypographies()
Get all typography styles
public static IEnumerable<Typography> GetAllTypographies()
Returns
- IEnumerable<Typography>
A list of Typography
GetGoogleFontUrl(string, string?, FontWeight)
Get google font uri
public static Uri GetGoogleFontUrl(string fontFamily, string? fontStyle, FontWeight fontWeight)
Parameters
fontFamily
stringFont family
fontStyle
stringFont style
fontWeight
FontWeightFont weight
Returns
GetGoogleFontUrl(string, string?, int)
Get google font uri
public static Uri GetGoogleFontUrl(string fontFamily, string? fontStyle, int fontWeight)
Parameters
Returns
GetTextTransformationName(TextTransform)
Get text text transform CSS property name
public static string GetTextTransformationName(TextTransform textTransformation)
Parameters
textTransformation
TextTransformThe text transform CSS property
Returns
GetTypography(string)
Gets the typography by id
public static Typography? GetTypography(string typographyId)
Parameters
typographyId
stringThe typography id
Returns
Save(Typography)
Saves the typography
public static void Save(Typography typography)
Parameters
typography
TypographyThe typography