nuget server logo nuget api documents
↑

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

CSSEnvirnment

Full name Microsoft.VisualBasic.MIME.Html.CSS.CSSEnvirnment Assembly Microsoft.VisualBasic.MIME.Html Members 10

01 Syntax

Microsoft.VisualBasic.MIME.Html.CSS.CSSEnvirnment

02 Methods

NameOverloadsSummary
SetBaseStyles 1 set css base styles
GetWidth 1 get css length value, usually be padding/margin width calculation
GetHeight 1 get css length value, usually be padding/margin width calculation
GetPen 2
GetFont 1 Initializes a new Font using a specified size and style.

03 Properties

NameOverloadsSummary
baseFont 1 the base font style of the canvas
baseLine 1 the base stroke line style of the canvas
dpi 1 bugs fixed for config dpi value on unix mono platform
canvas 1 the canvas size [width,height].

04 Members

method SetBaseStyles #
SetBaseStyles(Font, Pen)

set css base styles

Parameters
NameTypeDescription
fontFont

-

strokePen

-

method GetWidth #
GetWidth(String)

get css length value, usually be padding/margin width calculation

Parameters
NameTypeDescription
lenString

-

method GetHeight #
GetHeight(String)

get css length value, usually be padding/margin width calculation

Parameters
NameTypeDescription
lenString

-

method GetPen #
GetPen(Stroke, Boolean)
Parameters
NameTypeDescription
strokeStroke

-

allowNullBoolean

unlike the function CSSEnvirnment.GetPen() may returns the value of CSSEnvirnment.baseLine if the given stroke value is nothing, this function will returns nothing directly if this parameter value set to TRUE.

method GetPen overload 2 #
GetPen(Stroke)
Parameters
NameTypeDescription
strokeStroke

-

Returns

this function may handling of the stroke null value as the default CSSEnvirnment.baseLine style.

method GetFont #
GetFont(CSSFont, Single)

Initializes a new Font using a specified size and style.

property baseFont #
baseFont

the base font style of the canvas

property baseLine #
baseLine

the base stroke line style of the canvas

property dpi #
dpi

bugs fixed for config dpi value on unix mono platform

property canvas #
canvas

the canvas size [width,height].