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 was successful.
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 address)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabFormatConditionsClear()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + address + "!FormatConditions"
};
// Delete all conditional formats
var result = somClient.TabFormatConditionsClear(tTab);
return result;
}
See also: