menu

Document Processing

Pdf3DNodeCollection Class - C# PDF Library API Reference | Syncfusion

    Show / Hide Table of Contents

    Pdf3DNodeCollection Class

    Represents a collection of Pdf3DNode objects.

    Inheritance
    System.Object
    Pdf3DNodeCollection
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class Pdf3DNodeCollection : List<Pdf3DNode>
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3D Annotation.
    Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
    //Create a new Pdf3DView
    Pdf3DView view = new Pdf3DView();
    view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    view.Nodes.Add(node);
    //Adds a pdf3d view.
    annotation.Views.Add(view);
    //Adds a annotation.
    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 Pdf3D Annotation.
    Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
    'Create a new Pdf3DView
    Dim view As New Pdf3DView()
    view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
    'Create a new Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    view.Nodes.Add(node)
    'Adds a pdf3d view.
    annotation.Views.Add(view)
    'Adds a annotation.
    page.Annotations.Add(annotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Constructors

    Pdf3DNodeCollection()

    Declaration
    public Pdf3DNodeCollection()

    Properties

    Item[Int32]

    Gets or sets the Pdf3DNode at the specified index.

    Declaration
    public Pdf3DNode this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    Pdf3DNode
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3D Annotation.
    Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
    //Create a new Pdf3DView
    Pdf3DView view = new Pdf3DView();
    view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    view.Nodes.Add(node);
    //Adds a pdf3d view.
    annotation.Views.Add(view);
    //Adds a annotation.
    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 Pdf3D Annotation.
    Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
    'Create a new Pdf3DView
    Dim view As New Pdf3DView()
    view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
    'Create a new Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    view.Nodes.Add(node)
    'Adds a pdf3d view.
    annotation.Views.Add(view)
    'Adds a annotation.
    page.Annotations.Add(annotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)
    See Also
    PdfPage
    Pdf3DNode

    Methods

    Add(Pdf3DNode)

    Adds the specified node into the collection.

    Declaration
    public int Add(Pdf3DNode value)
    Parameters
    Type Name Description
    Pdf3DNode value

    The Pdf3DNode

    Returns
    Type Description
    System.Int32

    The index of the node to be added.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3D Annotation.
    Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
    //Create a new Pdf3DView
    Pdf3DView view = new Pdf3DView();
    view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    view.Nodes.Add(node);
    //Add a pdf3d view.
    annotation.Views.Add(view);
    //Add a annotation.
    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 Pdf3D Annotation.
    Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
    'Create a new Pdf3DView
    Dim view As New Pdf3DView()
    view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
    'Create a new Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    view.Nodes.Add(node)
    'Add a pdf3d view.
    annotation.Views.Add(view)
    'Add a annotation.
    page.Annotations.Add(annotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)
    See Also
    PdfPage
    Pdf3DAnnotation
    Pdf3DView
    Pdf3DNode

    Contains(Pdf3DNode)

    Determines whether the node is in the collection.

    Declaration
    public bool Contains(Pdf3DNode value)
    Parameters
    Type Name Description
    Pdf3DNode value

    The node to search for.

    Returns
    Type Description
    System.Boolean

    if it contains the specified value, set to true.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    node.Name = "Near View";
    node.Opacity = 100;
    node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //create the node collection
    Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection();
    nodecollection.Add(node);
    bool exist = nodecollection.Contains(node);
    //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 Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    node.Name = "Near View"
    node.Opacity = 100
    node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }
    'create the node collection
    Dim nodecollection As New Pdf3DNodeCollection()
    nodecollection.Add(node)
    Dim exist As Boolean = nodecollection.Contains(node)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)
    See Also
    PdfPage
    Pdf3DNode

    IndexOf(Pdf3DNode)

    Searches and finds the index of the specified node from the collection.

    Declaration
    public int IndexOf(Pdf3DNode value)
    Parameters
    Type Name Description
    Pdf3DNode value

    The node to be searched.

    Returns
    Type Description
    System.Int32

    The index value of the node to be searched from the collection.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    node.Name = "Near View";
    node.Opacity = 100;
    node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //create the node collection
    Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection();
    nodecollection.Add(node);
    //Search the index of the node
    int index = nodecollection.IndexOf(node);
    //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 Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    node.Name = "Near View"
    node.Opacity = 100
    node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }
    'create the node collection
    Dim nodecollection As New Pdf3DNodeCollection()
    nodecollection.Add(node)
    'Search the index of the node
    Dim index As Integer = nodecollection.IndexOf(node)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)
    See Also
    PdfPage
    Pdf3DNode

    Insert(Int32, Pdf3DNode)

    Inserts the specified index.

    Declaration
    public void Insert(int index, Pdf3DNode value)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Pdf3DNode value

    The value.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    node.Name = "Near View";
    node.Opacity = 100;
    node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //create the node collection
    Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection();
    nodecollection.Add(node);
    //insert the node
    nodecollection.Insert(0, node);
    //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 Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    node.Name = "Near View"
    node.Opacity = 100
    node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }
    'create the node collection
    Dim nodecollection As New Pdf3DNodeCollection()
    nodecollection.Add(node)
    'insert the node
    nodecollection.Insert(0, node)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)
    See Also
    PdfPage
    Pdf3DNode

    Remove(Pdf3DNode)

    Removes the specified value.

    Declaration
    public void Remove(Pdf3DNode value)
    Parameters
    Type Name Description
    Pdf3DNode value

    The value.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //Create a new Pdf3DNode.
    Pdf3DNode node = new Pdf3DNode();
    node.Visible = true;
    node.Name = "Near View";
    node.Opacity = 100;
    node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
    //create the node collection
    Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection();
    nodecollection.Add(node);
    //Remove the node
    nodecollection.Remove(node);
    //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 Pdf3DNode.
    Dim node As New Pdf3DNode()
    node.Visible = True
    node.Name = "Near View"
    node.Opacity = 100
    node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }
    'create the node collection
    Dim nodecollection As New Pdf3DNodeCollection()
    nodecollection.Add(node)
    'Remove the node
    nodecollection.Remove(node)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)
    See Also
    PdfPage
    Pdf3DNode

    See Also

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