nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MIME.Html / CssLength

CssLength

Full name Microsoft.VisualBasic.MIME.Html.Render.CSS.CssLength Assembly Microsoft.VisualBasic.MIME.Html Members 10

Represents and gets info about a CSS Length

00 Remarks

http://www.w3.org/TR/CSS21/syndata.html#length-units

01 Syntax

Microsoft.VisualBasic.MIME.Html.Render.CSS.CssLength

02 Methods

NameOverloadsSummary
.ctor 1 Creates a new CssLength from a length specified on a CSS style sheet or fragment
ConvertEmToPoints 1 If length is in Ems, returns its value in points
ConvertEmToPixels 1 If length is in Ems, returns its value in pixels
ToString 1 Returns the length formatted ready for CSS interpreting.

03 Properties

NameOverloadsSummary
Number 1 Gets the number in the length
HasError 1 Gets if the length has some parsing error
IsPercentage 1 Gets if the length represents a precentage (not actually a length)
IsRelative 1 Gets if the length is specified in relative units
Unit 1 Gets the unit of the length
Length 1 Gets the length as specified in the string

04 Members

method .ctor #
#ctor(String)

Creates a new CssLength from a length specified on a CSS style sheet or fragment

Parameters
NameTypeDescription
lengthString

Length as specified in the Style Sheet or style fragment

method ConvertEmToPoints #
ConvertEmToPoints(Single)

If length is in Ems, returns its value in points

Parameters
NameTypeDescription
emSizeSingle

Em size factor to multiply

Returns

Points size of this em

method ConvertEmToPixels #
ConvertEmToPixels(Single)

If length is in Ems, returns its value in pixels

Parameters
NameTypeDescription
pixelFactorSingle

Pixel size factor to multiply

Returns

Pixels size of this em

method ToString #
ToString

Returns the length formatted ready for CSS interpreting.

property Number #
Number

Gets the number in the length

property HasError #
HasError

Gets if the length has some parsing error

property IsPercentage #
IsPercentage

Gets if the length represents a precentage (not actually a length)

property IsRelative #
IsRelative

Gets if the length is specified in relative units

property Unit #
Unit

Gets the unit of the length

property Length #
Length

Gets the length as specified in the string