Table of Contents

Operator implicit operator

Namespace
DotNetBrowser.Ui
Assembly
DotNetBrowser.dll

implicit operator int(FontSize)

Converts the font size to integer.

public static implicit operator int(FontSize size)

Parameters

size FontSize

The font size to convert.

Returns

int

implicit operator FontSize(int)

Converts an integer to the font size.

public static implicit operator FontSize(int value)

Parameters

value int

The font size in pixels. Cannot be zero or negative.

Returns

FontSize

Exceptions

ArgumentException

The font size in pixels is zero or negative.