op.annot.setData
Overview
The operation allows to modify the annotation data of the given annotation.
Parameters
| Name | Type | Description |
|---|---|---|
| Input | Array | Array of IUnknown-based objects containing the IPXC_Annotation that will have it's data modified.
|
| Output | Array | Array of IUnknown-based objects containing the IPXC_Annotation that had it's data modified.
|
| Options | Dictionary | Dictionary with options of the operation. |
Sample
//C#
private void SetAnnotationData(PDFXEdit.IPXV_Document Doc, PDFXEdit.IPXV_Inst Inst, PDFXEdit.IPXC_Annotation Annotation)
{
//In this sample the Free Text Annotation is used
PDFXEdit.IPXC_AnnotData_FreeText FTData = (PDFXEdit.IPXC_AnnotData_FreeText)Annotation.Data;
FTData.Contents = "Test String";
int nID = Inst.Str2ID("op.annot.setData", false);
PDFXEdit.IOperation Op = Inst.CreateOp(nID);
PDFXEdit.ICabNode input = Op.Params.Root["Input"];
input.Add().v = Annotation;
PDFXEdit.ICabNode options = Op.Params.Root["Options"];
options["NewData"].v = FTData;
Op.Do();
}