Table of Contents

Class ButtonStyleHelper

Namespace
Dynamicweb.Content.Styles
Assembly
Dynamicweb.dll
public static class ButtonStyleHelper
Inheritance
ButtonStyleHelper
Inherited Members

Methods

Delete(string)

Deletes the button by id

public static void Delete(string buttonStyleId)

Parameters

buttonStyleId string

The button id

Exceptions

ArgumentNullException
InvalidOperationException

Thrown if the deleted button is used

GetAllButtons()

public static IEnumerable<ButtonStyle> GetAllButtons()

Returns

IEnumerable<ButtonStyle>

GetBorderRadius(ButtonShape)

Get border radius

public static double GetBorderRadius(ButtonShape buttonShape)

Parameters

buttonShape ButtonShape

The button shape

Returns

double

GetButton(string)

Gets the button by id

public static ButtonStyle? GetButton(string buttonStyleId)

Parameters

buttonStyleId string

The button id

Returns

ButtonStyle

Save(ButtonStyle)

Saves the button

public static void Save(ButtonStyle button)

Parameters

button ButtonStyle

The button

To top