bool TabFormatConditionsClear(string mon)
mon. Moniker of the range for working with its conditional formats.
The TabFormatConditionsClear operation deletes all conditional formats for cell range.
To execute the operation, in the mon field specify regular report instance moniker with the !Sheets!sheet key!range address!FormatConditions postfix.
The operation results in the logical true if, deletion finished successfully.
Below is the example of deleting all conditional formats of the cell range. The request contains moniker for working with cell range conditional formats. The response contains whether deletion was successful.
{
"TabFormatConditionsClear" :
{
"mon" : "S1!M!S!P1!Sheets!1!A0:B3!FormatConditions"
}
}
{
"TabFormatConditionsClearResult" : "1"
}
public static bool ClearFormatConditions(string moniker, string sheetKey, string adress)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabFormatConditionsClear()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + adress + "!FormatConditions"
};
// Delete all conditional formats
var result = somClient.TabFormatConditionsClear(tTab);
return result;
}
See also: