[]
        
(Showing Draft Content)

C1.Blazor.Core.C1StyleLength

C1StyleLength Struct

Struct that describe a length.

Namespace: C1.Blazor.Core
Assembly: C1.Blazor.Core.dll
Syntax
public struct C1StyleLength

Constructors

Name Description
C1StyleLength(double, C1StyleLengthUnit)

Initializes a new instance of the C1StyleLength struct.

Properties

Name Description
Auto

Gets the auto length.

FitParent

Gets the 100% length.

HalfParent

Gets the 50% length.

Inherit

Gets the "inherit" length.

IsAbsolute

Returns whether the length is an absolute distance.

Kind

Gets the kind of length.

MaxContent

Gets the max-content length.

MinContent

Gets the min-content length.

Unit

Gets the unit in which the length is expressed.

Value

Gets the amount of Unit.

Methods

Name Description
Equals(object)
GetHashCode()
Parse(string)

Parses the text and returns a length.

ToString()
TryParse(string, out C1StyleLength)

Tries to parse the specified text and returns the value in the length parameter.

Operators

Name Description
operator ==(C1StyleLength, C1StyleLength)

Compares two C1StyleLength structures for equality.

implicit operator C1StyleLength(double)

Casting operator to convert a double into a C1StyleLength. The unit assigned is pixels.

implicit operator C1StyleLength(string)

Casting operator to convert a string into a C1StyleLength.

operator !=(C1StyleLength, C1StyleLength)

Compares two C1StyleLength structures for inequality.