Edytuj

Udostępnij za pośrednictwem


JSValue.From Method

Definition

Overloads

From(UInt32, JSContext)

Creates a JavaScript number that represents the provided 32-bit value.

From(String, JSContext)

Creates a JavaScript string from the provided string.

From(Int32, JSContext)

Creates a JavaScript integer for the provided ivalue.

From(Double, JSContext)

Creates a JavaScript double from the provided double value.

From(Boolean, JSContext)

Creates a JavaScript Boolean value from the provide Boolean value.

From(CGSize, JSContext)
From(NSObject, JSContext)

Converts value into a JavaScript object in the specified context.

From(CGRect, JSContext)
From(CGPoint, JSContext)
From(NSRange, JSContext)

Creates a JavaScript object with length and range properties that are derived from the provided range.

From(UInt32, JSContext)

Creates a JavaScript number that represents the provided 32-bit value.

[Foundation.Export("valueWithUInt32:inContext:")]
public static JavaScriptCore.JSValue From (uint value, JavaScriptCore.JSContext context);
static member From : uint32 * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

value
UInt32
context
JSContext

Returns

Attributes

Applies to

From(String, JSContext)

Creates a JavaScript string from the provided string.

public static JavaScriptCore.JSValue From (string value, JavaScriptCore.JSContext context);
static member From : string * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

value
String
context
JSContext

Returns

Applies to

From(Int32, JSContext)

Creates a JavaScript integer for the provided ivalue.

[Foundation.Export("valueWithInt32:inContext:")]
public static JavaScriptCore.JSValue From (int ivalue, JavaScriptCore.JSContext context);
static member From : int * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

ivalue
Int32
context
JSContext

Returns

Attributes

Applies to

From(Double, JSContext)

Creates a JavaScript double from the provided double value.

[Foundation.Export("valueWithDouble:inContext:")]
public static JavaScriptCore.JSValue From (double value, JavaScriptCore.JSContext context);
static member From : double * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

value
Double
context
JSContext

Returns

Attributes

Applies to

From(Boolean, JSContext)

Creates a JavaScript Boolean value from the provide Boolean value.

[Foundation.Export("valueWithBool:inContext:")]
public static JavaScriptCore.JSValue From (bool value, JavaScriptCore.JSContext context);
static member From : bool * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

value
Boolean
context
JSContext

Returns

Attributes

Applies to

From(CGSize, JSContext)

[Foundation.Export("valueWithSize:inContext:")]
public static JavaScriptCore.JSValue From (CoreGraphics.CGSize size, JavaScriptCore.JSContext context);
static member From : CoreGraphics.CGSize * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

size
CGSize
context
JSContext

Returns

Attributes

Applies to

From(NSObject, JSContext)

Converts value into a JavaScript object in the specified context.

[Foundation.Export("valueWithObject:inContext:")]
public static JavaScriptCore.JSValue From (Foundation.NSObject value, JavaScriptCore.JSContext context);
static member From : Foundation.NSObject * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

value
NSObject
context
JSContext

Returns

Attributes

Applies to

From(CGRect, JSContext)

[Foundation.Export("valueWithRect:inContext:")]
public static JavaScriptCore.JSValue From (CoreGraphics.CGRect rect, JavaScriptCore.JSContext context);
static member From : CoreGraphics.CGRect * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

rect
CGRect
context
JSContext

Returns

Attributes

Applies to

From(CGPoint, JSContext)

[Foundation.Export("valueWithPoint:inContext:")]
public static JavaScriptCore.JSValue From (CoreGraphics.CGPoint point, JavaScriptCore.JSContext context);
static member From : CoreGraphics.CGPoint * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

point
CGPoint
context
JSContext

Returns

Attributes

Applies to

From(NSRange, JSContext)

Creates a JavaScript object with length and range properties that are derived from the provided range.

[Foundation.Export("valueWithRange:inContext:")]
public static JavaScriptCore.JSValue From (Foundation.NSRange range, JavaScriptCore.JSContext context);
static member From : Foundation.NSRange * JavaScriptCore.JSContext -> JavaScriptCore.JSValue

Parameters

range
NSRange
context
JSContext

Returns

Attributes

Applies to