Class Pdf3DNodeCollection
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents a collection of Pdf3DNode objects.
public class Pdf3DNodeCollection : List<Pdf3DNode>, IList<Pdf3DNode>, ICollection<Pdf3DNode>, IList, ICollection, IReadOnlyList<Pdf3DNode>, IReadOnlyCollection<Pdf3DNode>, IEnumerable<Pdf3DNode>, IEnumerable
- Inheritance
-
Pdf3DNodeCollection
- Implements
- Inherited Members
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()
public Pdf3DNodeCollection()
- See Also
Properties
this[int]
Gets or sets the Pdf3DNode at the specified index.
public Pdf3DNode this[int index] { get; set; }
Parameters
index
int
Property Value
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
Methods
Add(Pdf3DNode)
Adds the specified node into the collection.
public int Add(Pdf3DNode value)
Parameters
Returns
- int
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
Contains(Pdf3DNode)
Determines whether the node is in the collection.
public bool Contains(Pdf3DNode value)
Parameters
value
Pdf3DNodeThe node to search for.
Returns
- bool
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
IndexOf(Pdf3DNode)
Searches and finds the index of the specified node from the collection.
public int IndexOf(Pdf3DNode value)
Parameters
value
Pdf3DNodeThe node to be searched.
Returns
- int
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
Insert(int, Pdf3DNode)
Inserts the specified index.
public void Insert(int index, Pdf3DNode value)
Parameters
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
Remove(Pdf3DNode)
Removes the specified value.
public void Remove(Pdf3DNode value)
Parameters
value
Pdf3DNodeThe 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