[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPageSetup.FromJson

FromJson Method

FromJson(string)

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().

Declaration
void FromJson(string json)
Sub FromJson(json As String)
Parameters
Type Name Description
string json

The JSON string representing the page setup.

Examples
IPageSetup pageSetup = worksheet.PageSetup;
string json = "{\"bestFitRows\":true,\"bestFitColumns\":true,"
+ "\"margin\":{\"top\":36,\"bottom\":36,\"left\":30,\"right\":30}}";
pageSetup.FromJson(json);