CSSEnvirnment
01 Syntax
Microsoft.VisualBasic.MIME.Html.CSS.CSSEnvirnment
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| 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 | 2 | Initializes a new Font using a specified size and style. |
| GetSize | 1 | |
| GetValue | 1 | |
| GetLineWidth | 1 | |
| GetDashStyle | 1 | |
| GetFontByScale | 1 | |
| GetFontFamily | 1 | |
| GetFontStyle | 1 | |
| Empty | 1 |
03 Properties
04 Members
SetBaseStyles(
Font, Pen)set css base styles
Parameters
| Name | Type | Description |
|---|---|---|
font | Font | - |
stroke | Pen | - |
GetWidth(
String)get css length value, usually be padding/margin width calculation
Parameters
| Name | Type | Description |
|---|---|---|
len | String | - |
GetHeight(
String)get css length value, usually be padding/margin width calculation
Parameters
| Name | Type | Description |
|---|---|---|
len | String | - |
GetPen(Stroke,
Boolean)Parameters
| Name | Type | Description |
|---|---|---|
stroke | Stroke | - |
allowNull | Boolean | 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. |
GetPen(Stroke)
Parameters
| Name | Type | Description |
|---|---|---|
stroke | Stroke | - |
Returns
this function may handling of the stroke null value as the default CSSEnvirnment.baseLine style.
GetFont(CSSFont,
Single)Initializes a new Font using a specified size and style.
baseFont
the base font style of the canvas
baseLine
the base stroke line style of the canvas
dpi
bugs fixed for config dpi value on unix mono platform
canvas
the canvas size [width,height].
GetSize(CSSsize)
GetValue(CssLength,
Single)GetLineWidth(Stroke)
GetDashStyle(Stroke)
GetFontByScale(
Single)GetFontFamily(CSSFont)
GetFontStyle(CSSFont)
GetFont(
String)Empty(
Int32)