PDFANNOTATION_Flags_afNoView
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the value indicating if the annotation is displayed on the screen (allowing the user to interact with it) or not.

Syntax

VARIANT_BOOL PDFANNOTATION_Flags_afNoView { get; set; }
Value

VARIANT_TRUE if the control is not to be displayed, VARIANT_FALSE otherwise.

Remarks

Setting this property to VARIANT_TRUE commands a PDF reader to hide the annotation. The annotation may be printed (depending on the setting of the Print flag) but should be considered hidden for purposes of on-screen display and user interaction.

Equivalent in new interface: IPDFDocument4::AnnotNoView.

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_afNoView := 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_afNoView = 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_afNoView = 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_afNoView = True
PDF.EndDoc

See Also

Reference