[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPageSetup.ToJson

ToJson Method

ToJson()

Generates a JSON string from the page setup.

Use this method to serialize the current page setup settings to JSON so that they can be stored or later applied by using FromJson(string).

Declaration
string ToJson()
Function ToJson() As String
Returns
Type Description
string

The JSON string representing the page setup.

Examples
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.BlackAndWhite = true;
pageSetup.LeftHeader = "Quarterly Report";
string json = pageSetup.ToJson();