menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum Pdf3DActivationMode - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum Pdf3DActivationMode

    Specifies the available modes for activating a 3D annotation.

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum Pdf3DActivationMode
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new rectangle
    RectangleF rectangle = new RectangleF(10, 40, 30, 30);
    //Create a new Pdf3D Annotation.
    Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
    //Set the activation to the annotation.
    annotation.Activation = activation;
    //Create a new Pdf3DActivation.
    Pdf3DActivation activation = new Pdf3DActivation();
    annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation;
    page.Annotations.Add(annotation);
    //Save the document to disk.
    document.Save("Output.pdf");
    //close the document
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Create a new page .
    Dim page As PdfPage = document.Pages.Add()
    'Create a new rectangle
    Dim rectangle As New RectangleF(10, 40, 30, 30)
    'Create a new Pdf3D Annotation.
    Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
    'Create a new Pdf3DActivation.
    Dim activation As New Pdf3DActivation()
    'Set the activation to the annotation.
    annotation.Activation = activation
    annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation
    page.Annotations.Add(annotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Name Description
    ExplicitActivation

    Represents that the annotation should remain inactive until explicitly activated by a script or user action.

    PageOpen

    Represents that the annotation should be activated as soon as the page containing the annotation is opened.

    PageVisible

    Represents that the annotation should be activated as soon as any part of the page containing the annotation becomes visible.

    See Also
    PdfDocument
    PdfPage
    Pdf3DAnnotation
    Pdf3DActivation
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved