[]
Generates the page setup from the specified JSON string.
Use this method to apply page setup settings from serialized JSON data, such as JSON produced by ToJson().
void FromJson(string json)
Sub FromJson(json As String)
| Type | Name | Description |
|---|---|---|
| string | json | The JSON string representing the page setup. |
IPageSetup pageSetup = worksheet.PageSetup;
string json = "{\"bestFitRows\":true,\"bestFitColumns\":true,"
+ "\"margin\":{\"top\":36,\"bottom\":36,\"left\":30,\"right\":30}}";
pageSetup.FromJson(json);