Table of Contents

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 string

The 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 string

Font family

fontStyle string

Font style

fontWeight FontWeight

Font weight

Returns

Uri

GetGoogleFontUrl(string, string?, int)

Get google font uri

public static Uri GetGoogleFontUrl(string fontFamily, string? fontStyle, int fontWeight)

Parameters

fontFamily string

Font family

fontStyle string

Font style

fontWeight int

Font weight

Returns

Uri

GetTextTransformationName(TextTransform)

Get text text transform CSS property name

public static string GetTextTransformationName(TextTransform textTransformation)

Parameters

textTransformation TextTransform

The text transform CSS property

Returns

string

GetTypography(string)

Gets the typography by id

public static Typography? GetTypography(string typographyId)

Parameters

typographyId string

The typography id

Returns

Typography

Save(Typography)

Saves the typography

public static void Save(Typography typography)

Parameters

typography Typography

The typography

To top