bool TabFormatConditionsMove(string mon, ItemMoveInfo tArg)
mon. Moniker of the range for working with its conditional formats.
tArg. Parameters for moving conditional formats.
The TabFormatConditionsMove operation moves conditional formats.
The order of conditional formats determines the order of their application to a cell range. To execute the operation, in the mon field specify regular report instance moniker with the !Sheets!sheet key !range address!FormatConditions postfix, and in the tArg field specify parameters for moving conditional formats.
The operation results in the logical true if moving completed successfully.
Below is the example of moving conditional formats in the collection. The request contains moniker for working with conditional formats of cell range, index of conditional format to be moved, and index of the position, to which moving is executed. The response contains whether the dimension is successfully moved.
{
"TabFormatConditionsMove" :
{
"mon" : "S1!M!S!P1!Sheets!1!A0:B3!FormatConditions",
"tArg" :
{
"indexFrom" : "0",
"indexTo" : "1"
}
}
}
{
"TabFormatConditionsMoveResult" : "1"
}
public static bool MoveFormatConditions(string moniker, string sheetKey, string adress, long moveFrom, long moveTo)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabFormatConditionsMove()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + adress + "!FormatConditions",
tArg = new ItemMoveInfo()
{
indexFrom = moveFrom,
indexTo = moveTo
}
};
// Move conditional formats
var result = somClient.TabFormatConditionsMove(tTab);
return result;
}
See also: