DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.JSNumber Class Reference

Represents JavaScript primitive number value. More...

Inherits DotNetBrowser.JSPrimitive< double >.

Public Member Functions

override bool IsNumber ()
 Indicates whether JavaScript value is a number value which equals to double type. If this method returns true, then the value can be casted to JSNumber type. For example: More...
 
override JSNumber AsNumber ()
 Casts the current JavaScript object to JSNumber type. More...
 
override double GetNumber ()
 Returns number value of the current JSNumber instance. More...
 
- Public Member Functions inherited from DotNetBrowser.JSPrimitive< double >
override string ToString ()
 

Properties

override double Value [get]
 Gets the value of the current JSNumber instance. More...
 
- Properties inherited from DotNetBrowser.JSPrimitive< double >
abstract T Value [get]
 Gets the value of the current primitive instance. More...
 

Detailed Description

Represents JavaScript primitive number value.

Member Function Documentation

override JSNumber DotNetBrowser.JSNumber.AsNumber ( )

Casts the current JavaScript object to JSNumber type.

override double DotNetBrowser.JSNumber.GetNumber ( )

Returns number value of the current JSNumber instance.

override bool DotNetBrowser.JSNumber.IsNumber ( )

Indicates whether JavaScript value is a number value which equals to double type. If this method returns true, then the value can be casted to JSNumber type. For example:

if (value.IsNumber()) { JSNumber number = value.AsNumber(); }

Returns
true when JavaScript value is a number value.

Property Documentation

override double DotNetBrowser.JSNumber.Value
get

Gets the value of the current JSNumber instance.