Class HTMLFontElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
IMPORTANT
Deprecated[Value("HTMLFontElement")]
public class HTMLFontElement : HTMLElement
- Inheritance
-
HTMLFontElement
- Inherited Members
Remarks
-The HTML element implementing this interface: font.
Constructors
HTMLFontElement()
public HTMLFontElement()
Properties
Color
IMPORTANT
DeprecatedHTMLFontElement.colorproperty is a string that reflects the
color HTML attribute, containing either a named color or a color specified in thehexadecimal #RRGGBB format.
[Value("color")]
public string Color { get; set; }
Property Value
- string
A string.When set to the
nullvalue, thatnullvalue is converted to the empty string (""), soelt.color = nullis equivalent toelt.color = "".
Remarks
The format of the string must follow one of the following HTML microsyntaxes (see <color>):
Microsyntax | Description | Examples |
Valid name color string | nameOfColor (case insensitive) |
|
Valid hex color string | #RRGGBB |
|
RGB using decimal values | rgb(x x x) (x in 0-255 range) |
|
-The HTMLFontElement interface it belongs to.
Face
IMPORTANT
DeprecatedHTMLFontElement.faceproperty is a string that reflects the
face HTML attribute, containing a comma-separated list of one or more fontnames.
[Value("face")]
public string Face { get; set; }
Property Value
- string
A string.
Remarks
The document text, in the default style, is rendered as the first font face that the
client's browser supports. If no font listed is installed on the local system, the
browser typically defaults to the proportional or fixed-width font for that system.
The format of the string must follow one of the following HTML microsyntax:
Microsyntax | Description | Examples |
List of one or more valid font family names | A list of font names, that have to be present on the local system |
|
-The HTMLFontElement interface it belongs to.
Size
IMPORTANT
DeprecatedHTMLFontElement.size property is astring that reflects the
size HTMLattribute. It contains either a font size ranging from 1 to 7 or a
number relative to the default value 3, for example -2 or +1.
[Value("size")]
public string Size { get; set; }
Property Value
- string
A string.
Remarks
The format of the string must follow one of the following HTML microsyntaxes:
-The HTMLFontElement interface it belongs to.