Table of Contents

Class HTMLFontElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
IMPORTANT
Deprecated
Implements the document object model (DOM) representation of the font element. The HTML Font Element font defines the font size, font face and color of text.
[Value("HTMLFontElement")]
public class HTMLFontElement : HTMLElement
Inheritance
HTMLFontElement
Inherited Members

Remarks

-The HTML element implementing this interface: font.

See also on MDN

Constructors

HTMLFontElement()

public HTMLFontElement()

Properties

Color

IMPORTANT
Deprecated
The obsolete
HTMLFontElement.color
property is a string that reflects the color HTML attribute, containing either a named color or a color specified in the
hexadecimal #RRGGBB format.
[Value("color")]
public string Color { get; set; }

Property Value

string

A string.When set to the null value, that null value is converted to the empty string (""), so elt.color = null is equivalent to elt.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)

Green, green, GREEN

Valid hex color string

#RRGGBB

#008000

RGB using decimal values

rgb(x x x) (x in 0-255 range)

rgb(0 128 0)

-The HTMLFontElement interface it belongs to.

See also on MDN

Face

IMPORTANT
Deprecated
The obsolete
HTMLFontElement.face
property is a string that reflects the face HTML attribute, containing a comma-separated list of one or more font
names.
[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

courier,verdana

-The HTMLFontElement interface it belongs to.

See also on MDN

Size

IMPORTANT
Deprecated
The obsolete
HTMLFontElement.size property is a
string that reflects the size HTML
attribute. 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.

See also on MDN