DelTabRangeComment

Syntax

bool DelTabRangeComment(string mon)

Parameters

mon. Moniker for working with table cell.

Description

The DelTabRangeComment operation deletes table cell comments.

Comments

To execute the operation, in the mon field specify the moniker for working with cell in the following format: Regular report instance moniker!Sheets!Sheet key!absolute address. If the cell range moniker is specified, comments are deleted in all cells in the range.

The operation results in the logical True if comment was deleted successfully.

Example

Below is the example of cell comment deletion. The request contains moniker for working with a cell. The response contains whether a comment is successfully deleted.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DelTabRangeComment xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">HBNCFAKEFPMNFOAEGJLELNECHEGOAOHEKJALPKOGKEBPFMNE!M!S!PKHDIGFKEFPMNFOAEDGNBAHBMBHMJKBNENLGGOOJBLJAKBOAO!Sheets!1!A1</mon>
  </DelTabRangeComment>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <DelTabRangeCommentResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</DelTabRangeCommentResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DelTabRangeComment" :
{
"mon" : "HBNCFAKEFPMNFOAEGJLELNECHEGOAOHEKJALPKOGKEBPFMNE!M!S!PKHDIGFKEFPMNFOAEDGNBAHBMBHMJKBNENLGGOOJBLJAKBOAO!Sheets!1!A1"
}
}

JSON response:

{
"DelTabRangeCommentResult" : "1"
}
public static bool DelTabRangeComment(string moniker, string sheetKey, string address)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new DelTabRangeComment()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + address
};
// Delete cell comment
var result = somClient.DelTabRangeComment(tTab);
return result;
}

See also:

Table: Operations