Class BorderStyle
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.Core.dll
Fluent builder for constructing CSS border styles.
public sealed class BorderStyle
- Inheritance
-
objectBorderStyle
Methods
All(string, BorderStyleType, CssColor)
CssColor-typed overload — BOBBorderPresets and consumer fluent code can pass Default / Primary directly without an explicit cast to string.
public BorderStyle All(string width, BorderStyleType style, CssColor color)
Parameters
widthstringstyleBorderStyleTypecolorCssColor
Returns
All(string, BorderStyleType, string)
Applies the same border to all four sides.
public BorderStyle All(string width, BorderStyleType style, string color)
Parameters
widthstringstyleBorderStyleTypecolorstring
Returns
Bottom(string, BorderStyleType, CssColor)
Applies a border to the bottom side using a CssColor.
public BorderStyle Bottom(string width, BorderStyleType style, CssColor color)
Parameters
widthstringstyleBorderStyleTypecolorCssColor
Returns
Bottom(string, BorderStyleType, string)
Applies a border to the bottom side.
public BorderStyle Bottom(string width, BorderStyleType style, string color)
Parameters
widthstringstyleBorderStyleTypecolorstring
Returns
Create()
Creates a new empty BorderStyle instance.
public static BorderStyle Create()
Returns
GetColorCss()
Gets the computed border color CSS string.
public string? GetColorCss()
Returns
- string
GetCssValues()
Extracts the computed CSS values for all border properties.
public BorderCssValues GetCssValues()
Returns
GetRadiusCss()
Gets the computed border radius CSS string.
public string? GetRadiusCss()
Returns
- string
Left(string, BorderStyleType, CssColor)
Applies a border to the left side using a CssColor.
public BorderStyle Left(string width, BorderStyleType style, CssColor color)
Parameters
widthstringstyleBorderStyleTypecolorCssColor
Returns
Left(string, BorderStyleType, string)
Applies a border to the left side.
public BorderStyle Left(string width, BorderStyleType style, string color)
Parameters
widthstringstyleBorderStyleTypecolorstring
Returns
None()
Removes all borders.
public BorderStyle None()
Returns
Radius(int)
Sets a uniform border radius for all corners.
public BorderStyle Radius(int all)
Parameters
allint
Returns
Radius(int?, int?, int?, int?)
Sets individual border radii for each corner.
public BorderStyle Radius(int? topLeft = null, int? topRight = null, int? bottomRight = null, int? bottomLeft = null)
Parameters
topLeftint?topRightint?bottomRightint?bottomLeftint?
Returns
Right(string, BorderStyleType, CssColor)
Applies a border to the right side using a CssColor.
public BorderStyle Right(string width, BorderStyleType style, CssColor color)
Parameters
widthstringstyleBorderStyleTypecolorCssColor
Returns
Right(string, BorderStyleType, string)
Applies a border to the right side.
public BorderStyle Right(string width, BorderStyleType style, string color)
Parameters
widthstringstyleBorderStyleTypecolorstring
Returns
Top(string, BorderStyleType, CssColor)
Applies a border to the top side using a CssColor.
public BorderStyle Top(string width, BorderStyleType style, CssColor color)
Parameters
widthstringstyleBorderStyleTypecolorCssColor
Returns
Top(string, BorderStyleType, string)
Applies a border to the top side.
public BorderStyle Top(string width, BorderStyleType style, string color)
Parameters
widthstringstyleBorderStyleTypecolorstring