OpItemKey TabFormatConditionsAdd(string mon)
mon. Moniker of the range for working with its conditional formats.
The TabFormatConditionsAdd operation creates a new conditional format 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 conditional format key.
Below is the example of creating a new conditional format. The request contains moniker for working with cell range conditional formats. The response contains key of new conditional format.
{
"TabFormatConditionsAdd" :
{
"mon" : "S1!M!S!P1!Sheets!1!A0:B3!FormatConditions"
}
}
{
"TabFormatConditionsAddResult" :
{
"k" : "1"
}
}
public static OpItemKey AddFormatCondition(string moniker, string sheetKey, string adress)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabFormatConditionsAdd()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + adress + "!FormatConditions"
};
// Create conditional format
var result = somClient.TabFormatConditionsAdd(tTab);
return result;
}
See also: