Represents and gets info about a CSS Length
CssLength
00 Remarks
01 Syntax
Microsoft.VisualBasic.MIME.Html.Render.CSS.CssLength
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .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
| Name | Overloads | Summary |
|---|---|---|
| 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
#ctor(
String)Creates a new CssLength from a length specified on a CSS style sheet or fragment
Parameters
| Name | Type | Description |
|---|---|---|
length | String | Length as specified in the Style Sheet or style fragment |
ConvertEmToPoints(
Single)If length is in Ems, returns its value in points
Parameters
| Name | Type | Description |
|---|---|---|
emSize | Single | Em size factor to multiply |
Returns
Points size of this em
ConvertEmToPixels(
Single)If length is in Ems, returns its value in pixels
Parameters
| Name | Type | Description |
|---|---|---|
pixelFactor | Single | Pixel size factor to multiply |
Returns
Pixels size of this em
ToString
Returns the length formatted ready for CSS interpreting.
Number
Gets the number in the length
HasError
Gets if the length has some parsing error
IsPercentage
Gets if the length represents a precentage (not actually a length)
IsRelative
Gets if the length is specified in relative units
Unit
Gets the unit of the length
Length
Gets the length as specified in the string