[]
        
(Showing Draft Content)

C1.Blazor.Core.C1Style

C1Style Class

This class simplify the manipulation of CSS properties.

Inheritance
C1Style
Implements
Namespace: C1.Blazor.Core
Assembly: C1.Blazor.Core.dll
Syntax
public class C1Style : ICloneable
Remarks

The Parse(string) method allows converting from a standard CSS style string to a C1Style object and ToString() method converts back to string.

Constructors

Name Description
C1Style()

Initializes a new instance of the C1Style class.

C1Style(C1Style)

Initializes a new instance of the C1Style class from an existing style.

Properties

Name Description
AlignItems

The align-items property specifies the default alignment for items inside the flexible container.

AllowRepeatedAttributes

Gets or sets whether when setting a property the value will replace the previous value or not.

BackgroundColor

The background-color property sets the background color of an element.

BackgroundImage

The background-image property sets the background of an element.

BorderBottomStyle

The border-bottom-style property sets the style of an element's four borders.

BorderBottomWidth

The border-bottom-width property sets the width of an element's four borders.

BorderColor

The border-color property sets the color of an element's four borders.

BorderLeftStyle

The border-left-style property sets the style of an element's four borders.

BorderLeftWidth

The border-left-width property sets the width of an element's four borders.

BorderRadius

The border-radius property defines the radius of the element's corners.

BorderRightStyle

The border-right-style property sets the style of an element's four borders.

BorderRightWidth

The border-right-width property sets the width of an element's four borders.

BorderStyle

The border-style property sets the style of an element's four borders.

BorderTopStyle

The border-top-style property sets the style of an element's four borders.

BorderTopWidth

The border-top-width property sets the width of an element's four borders.

BorderWidth

The border-width property sets the width of an element's four borders.

Bottom

The bottom property affects the vertical position of a positioned element. This property has no effect on non-positioned elements.

Color

The color property specifies the color of text.

Display

The display property specifies the display behavior (the type of rendering box) of an element.

FontFamily

Gets or sets element's font-family.

FontSize

Gets or sets element's font-size.

FontStyle

Gets or sets element's font-weight.

FontWeight

Gets or sets element's font-weight.

GridArea

The grid-area property specifies a grid item's size and location in a grid layout.

GridColumn

The grid-column property specifies a grid item's size and location in a grid layout.

GridRow

The grid-row property specifies a grid item's size and location in a grid layout.

GridTemplateColumns

The grid-template-columns property specifies the number (and the widths) of columns in a grid layout.

GridTemplateRows

The grid-template-rows property specifies the number (and the heights) of the rows in a grid layout.

Height

The height property sets the height of an element.

IsEmpty

Gets whether any attribute was set.

this[string]

Gets the string corresponding to the specified attribute.

JustifyContent

The justify-content property aligns the flexible container's items when the items do not use all available space on the main-axis (horizontally).

Left

The left property affects the horizontal position of a positioned element. This property has no effect on non-positioned elements.

LineHeight

property specifies the height of a line.

Margin

The margin property sets the margins for an element.

MaxHeight

The max-height property defines the maximum height of an element.

MaxWidth

The max-width property defines the maximum width of an element.

MinHeight

The min-height property defines the minimum height of an element.

MinWidth

The min-width property defines the minimum width of an element.

Padding

An element's padding is the space between its content and its border.

Position

The position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky).

Right

The right property affects the horizontal position of a positioned element. This property has no effect on non-positioned elements.

Stroke

The stroke property defines the color of a line, text or outline of an element.

StrokeDashArray

The stroke-dasharray attribute is used to create dashed lines.

StrokeWidth

The stroke-width property defines the thickness of a line, text or outline of an element.

TextAlign

The text-align property specifies the horizontal alignment of text in an element.

Top

The top property affects the vertical position of a positioned element. This property has no effect on non-positioned elements.

VerticalAlign

property sets the vertical alignment of an element.

WhiteSpace

The white-space property specifies how white-space inside an element is handled.

Width

The width property sets the width of an element.

ZIndex

The z-index property specifies the stack order of an element.

Methods

Name Description
Clone()

Creates a new object that is a copy of the current instance.

Equals(object)
GetHashCode()
Parse(string)

Parses a string into a C1Style.

ToString()

Operators

Name Description
implicit operator C1Style(string)

Casting operator to convert a string into a C1Style.