Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I need to see if selected annotation elements are locked. Below is the code so far, however this is not working as the annotation element has a flag value of 644, which obviously is a number of flags that I have set on the annotation element previous. Is there a way to just check if it's locked:
Dim sel As PDFXEdit.IPXV_DocSelection = Me.docPreview.Doc.ActiveSel
Dim annotSel As PDFXEdit.IPXV_AnnotSelection = CType(sel, PDFXEdit.IPXV_AnnotSelection)
Dim annotType As String = Nothing
If annotSel IsNot Nothing Then
If annotSel.Items.Count <> 0 Then
Dim ipi As IPXV_InvalidatePagesInfo = docPreview.Doc.CreateInvPagesInfo()
For i As UInteger = 0 To annotSel.Items.Count - 1
Dim annot As IPXC_Annotation = annotSel.Items(i)
annotType = pxsInst.AtomToStr(annot.Type)
If annot.Flags = PXC_AnnotFlag.AF_ContentLocked Then
Debug.WriteLine("Annot locked")
End If
Next
End If
End If