I want to add commont the text selected by me , but I can’t find an available API. My code is as follows:
var oDocument = Api.GetDocument();
//var oParagraph = oDocument.GetElement(0);
var oRange = oDocument.GetRangeBySelect();
var oRangeParagraph0 = oRange.GetParagraph(0);
oDocument.AddComment(oRangeParagraph0 ,“this is commont content”, “xpc”);
But it doesn’t work
I can’t find the relevant method in the API document,
I want to know how to realize my problem,
Thank you.