Table of Contents

Class BorderStyle

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.Core.dll

Fluent builder for constructing CSS border styles.

public sealed class BorderStyle
Inheritance
object
BorderStyle

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

width string
style BorderStyleType
color CssColor

Returns

BorderStyle

All(string, BorderStyleType, string)

Applies the same border to all four sides.

public BorderStyle All(string width, BorderStyleType style, string color)

Parameters

width string
style BorderStyleType
color string

Returns

BorderStyle

Bottom(string, BorderStyleType, CssColor)

Applies a border to the bottom side using a CssColor.

public BorderStyle Bottom(string width, BorderStyleType style, CssColor color)

Parameters

width string
style BorderStyleType
color CssColor

Returns

BorderStyle

Bottom(string, BorderStyleType, string)

Applies a border to the bottom side.

public BorderStyle Bottom(string width, BorderStyleType style, string color)

Parameters

width string
style BorderStyleType
color string

Returns

BorderStyle

Create()

Creates a new empty BorderStyle instance.

public static BorderStyle Create()

Returns

BorderStyle

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

BorderCssValues

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

width string
style BorderStyleType
color CssColor

Returns

BorderStyle

Left(string, BorderStyleType, string)

Applies a border to the left side.

public BorderStyle Left(string width, BorderStyleType style, string color)

Parameters

width string
style BorderStyleType
color string

Returns

BorderStyle

None()

Removes all borders.

public BorderStyle None()

Returns

BorderStyle

Radius(int)

Sets a uniform border radius for all corners.

public BorderStyle Radius(int all)

Parameters

all int

Returns

BorderStyle

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

topLeft int?
topRight int?
bottomRight int?
bottomLeft int?

Returns

BorderStyle

Right(string, BorderStyleType, CssColor)

Applies a border to the right side using a CssColor.

public BorderStyle Right(string width, BorderStyleType style, CssColor color)

Parameters

width string
style BorderStyleType
color CssColor

Returns

BorderStyle

Right(string, BorderStyleType, string)

Applies a border to the right side.

public BorderStyle Right(string width, BorderStyleType style, string color)

Parameters

width string
style BorderStyleType
color string

Returns

BorderStyle

Top(string, BorderStyleType, CssColor)

Applies a border to the top side using a CssColor.

public BorderStyle Top(string width, BorderStyleType style, CssColor color)

Parameters

width string
style BorderStyleType
color CssColor

Returns

BorderStyle

Top(string, BorderStyleType, string)

Applies a border to the top side.

public BorderStyle Top(string width, BorderStyleType style, string color)

Parameters

width string
style BorderStyleType
color string

Returns

BorderStyle