Converts this LeadRectD to a JSON-compatible dictionary object.
LeadRectD.prototype.toJSON = function()
toJSON(): any;
a JavaScript JSON-compatible object to describe the LeadRectD instance.
If the LeadRectD instance is Empty, then the width
and height
properties of this JSON
object will be set to "-Infinity"
and the x
and y
properties will be set to "Infinity"
:
{
"x": "Infinity",
"y": "Infinity",
"width": "-Infinity",
"height": "-Infinity"
}
The returned dictionary object can be used to create a new LeadRectD instance with the static method FromJSON, though it is recommended to use Clone instead when simply creating a copy of the instance. The ToJSON and FromJSON methods allow the transfer of LeadRectD data between .NET, Java, and JavaScript.
Following standard web specifications, the ToJSON method and subsequent return value are used automatically
for a LeadRectD instance when the global JSON.stringify
function is called on that instance.
Products |
Support |
Feedback: toJSON Method (LeadRectD) - Leadtools |
Introduction |
Help Version 19.0.2017.3.21
|