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
stringThe button id
Exceptions
- ArgumentNullException
- InvalidOperationException
Thrown if the deleted button is used
GetAllButtons()
public static IEnumerable<ButtonStyle> GetAllButtons()
Returns
GetBorderRadius(ButtonShape)
Get border radius
public static double GetBorderRadius(ButtonShape buttonShape)
Parameters
buttonShape
ButtonShapeThe button shape
Returns
GetButton(string)
Gets the button by id
public static ButtonStyle? GetButton(string buttonStyleId)
Parameters
buttonStyleId
stringThe button id
Returns
Save(ButtonStyle)
Saves the button
public static void Save(ButtonStyle button)
Parameters
button
ButtonStyleThe button