nuget server logo nuget api documents
↑

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

CssValue

Full name Microsoft.VisualBasic.MIME.Html.Render.CSS.CssValue Assembly Microsoft.VisualBasic.MIME.Html Members 8

01 Syntax

Microsoft.VisualBasic.MIME.Html.Render.CSS.CssValue

02 Methods

NameOverloadsSummary
ParseNumber 1 Evals a number and returns it.
GetActualColor 1 Parses a color value in CSS style; e.g.
SplitValues 2 Split the value by the specified separator; e.g.
GetTypeInfo 1 Detects the type name in a path.
DetectSource 1 Returns the object specific to the path
GetStyleSheet 1 Gets the content of the stylesheet specified in the path
GoLink 1 Executes the desired action when the user clicks a link

03 Members

method ParseNumber #
ParseNumber(String, Single)

Evals a number and returns it. If number is a percentage, it will be multiplied by hundredPercent

Parameters
NameTypeDescription
numberString

Number to be parsed

hundredPercentSingle

Number that represents the 100% if parsed number is a percentage

Returns

Parsed number. Zero if error while parsing.

method GetActualColor #
GetActualColor(String)

Parses a color value in CSS style; e.g. #ff0000, red, rgb(255,0,0), rgb(100%, 0, 0)

Parameters
NameTypeDescription
colorValueString

Specified color value; e.g. #ff0000, red, rgb(255,0,0), rgb(100%, 0, 0)

Returns

System.Drawing.Color value

method SplitValues overload 2 #
SplitValues(String)

Split the value by spaces; e.g. Useful in values like 'padding:5 4 3 inherit'

Parameters
NameTypeDescription
valueString

Value to be splitted

Returns

Splitted and trimmed values

method SplitValues #
SplitValues(String, Char)

Split the value by the specified separator; e.g. Useful in values like 'padding:5 4 3 inherit'

Parameters
NameTypeDescription
valueString

Value to be splitted

Returns

Splitted and trimmed values

method GetTypeInfo #
GetTypeInfo(String, String)

Detects the type name in a path. E.g. Gets System.Drawing.Graphics from a path like System.Drawing.Graphics.Clear

Parameters
NameTypeDescription
pathString

-

method DetectSource #
DetectSource(String)

Returns the object specific to the path

Parameters
NameTypeDescription
pathString

-

Returns

One of the following possible objects: FileInfo, MethodInfo, PropertyInfo

method GetStyleSheet #
GetStyleSheet(String)

Gets the content of the stylesheet specified in the path

Parameters
NameTypeDescription
pathString

-