PDFANNOTATION_Flags_afInvisible
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the value indicating if the annotation is visible or invisible.

Syntax

VARIANT_BOOL PDFANNOTATION_Flags_afInvisible { get; set; }
Value
VARIANT_TRUE if the control is invisible, VARIANT_FALSE otherwise.

Remarks

If set to VARIANT_TRUE, do not display the annotation if it does not belong to one of the standard annotation types and no annotation handler is available. If set to VARIANT_FALSE, display such an unknown annotation.

Equivalent in new interface: IPDFDocument4::AnnotInvisible.

Example

Changing an Annotation's Flags

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetAnnotation(100, 200, 110, 210, 'Title',
    'Here goes annotation contents...', 255, false, false, false,
    false, false, false, false, false, charsetANSI_CHARSET);
PDF.PDFANNOTATION_Flags_afInvisible := true;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetAnnotation(100, 200, 110, 210, "Title",
    "Here goes annotation contents...", 255, FALSE, FALSE, FALSE,
    FALSE, FALSE, FALSE, FALSE, FALSE, charsetANSI_CHARSET);
PDF->PDFANNOTATION_Flags_afInvisible = TRUE;
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetAnnotation(100, 200, 110, 210, "Title",
    "Here goes annotation contents...", 255, false, false, false,
    false, false, false, false, false, TxFontCharset.charsetANSI_CHARSET);
PDF.PDFANNOTATION_Flags_afInvisible = true;
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_SetAnnotation 100, 200, 110, 210, "Title",_
    "Here goes annotation contents...", 255,_
    false, false, false, false, false, false, false, false, 0
PDF.PDFANNOTATION_Flags_afInvisible = True
PDF.EndDoc

See Also

Reference