int
Number
This function retrieves the value of a Number value. It will fail with InvalidArgument if the type of the value is not Number.
InvalidArgument
Requires an active script context.
public int ToInt32() { int value; JsErrorHelpers.ThrowIfError(NativeMethods.JsNumberToInt(this, out value)); return value; }