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
FontSizeThe font size to convert.
Returns
implicit operator FontSize(int)
Converts an integer to the font size.
public static implicit operator FontSize(int value)
Parameters
value
intThe font size in pixels. Cannot be zero or negative.
Returns
Exceptions
- ArgumentException
The font size in pixels is zero or negative.