menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Pdf3DActivationState - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Pdf3DActivationState

    Specifies an activation state of the 3D annotation.

    Inheritance
    System.Object
    Pdf3DActivationState
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class Pdf3DActivationState : Enum
    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");
    //Create a new Pdf3DActivation.
    Pdf3DActivation activation = new Pdf3DActivation();
    //Set the activation to the annotation.
    annotation.Activation = activation;
    annotation.Activation.ActivationState = Pdf3DActivationState.Live;
    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.ActivationState = Pdf3DActivationState.Live
    page.Annotations.Add(annotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Instantiated

    Represents that the state in which the artwork has been read and a run-time instance of the artwork has been created. In this state, it can be rendered but script-driven real-time modifications (that is, animations) are disabled.

    Declaration
    public const Pdf3DActivationState Instantiated
    Field Value
    Type
    Pdf3DActivationState

    Live

    Represents that the artwork is instantiated, and it is being modified in real time to achieve some animation effect. In the case of key frame animation, the artwork is live while it is playing and then reverts to an instantiated state when playing completes or is stopped.

    Declaration
    public const Pdf3DActivationState Live
    Field Value
    Type
    Pdf3DActivationState

    See Also

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