Class Pdf3DCrossSectionCollection
Represents the collection of Pdf3DCrossSection objects.
Inheritance
System.Object
System.Collections.Generic.List<Pdf3DCrossSection>
Pdf3DCrossSectionCollection
Implements
System.Collections.Generic.IList<Pdf3DCrossSection>
System.Collections.Generic.ICollection<Pdf3DCrossSection>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<Pdf3DCrossSection>
System.Collections.Generic.IReadOnlyCollection<Pdf3DCrossSection>
System.Collections.Generic.IEnumerable<Pdf3DCrossSection>
System.Collections.IEnumerable
Inherited Members
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.Add(System.Object)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.AddRange(System.Collections.Generic.IEnumerable<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.AsReadOnly()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.BinarySearch(System.Int32, System.Int32, Syncfusion.Pdf.Interactive.Pdf3DCrossSection, System.Collections.Generic.IComparer<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.BinarySearch(Syncfusion.Pdf.Interactive.Pdf3DCrossSection)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.BinarySearch(Syncfusion.Pdf.Interactive.Pdf3DCrossSection, System.Collections.Generic.IComparer<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Clear()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.Contains(System.Object)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.ConvertAll<TOutput>(System.Converter<Syncfusion.Pdf.Interactive.Pdf3DCrossSection, TOutput>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.CopyTo(Syncfusion.Pdf.Interactive.Pdf3DCrossSection[])
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.CopyTo(System.Int32, Syncfusion.Pdf.Interactive.Pdf3DCrossSection[], System.Int32, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.CopyTo(Syncfusion.Pdf.Interactive.Pdf3DCrossSection[], System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Exists(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Find(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindAll(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindIndex(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindIndex(System.Int32, System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindIndex(System.Int32, System.Int32, System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindLast(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindLastIndex(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindLastIndex(System.Int32, System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.FindLastIndex(System.Int32, System.Int32, System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.ForEach(System.Action<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.GetEnumerator()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.Generic.IEnumerable<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.GetEnumerator()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.GetRange(System.Int32, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.IndexOf(System.Object)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.IndexOf(Syncfusion.Pdf.Interactive.Pdf3DCrossSection, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.IndexOf(Syncfusion.Pdf.Interactive.Pdf3DCrossSection, System.Int32, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.LastIndexOf(Syncfusion.Pdf.Interactive.Pdf3DCrossSection)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.LastIndexOf(Syncfusion.Pdf.Interactive.Pdf3DCrossSection, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.LastIndexOf(Syncfusion.Pdf.Interactive.Pdf3DCrossSection, System.Int32, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.Remove(System.Object)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.RemoveAll(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.RemoveAt(System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.RemoveRange(System.Int32, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Reverse()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Reverse(System.Int32, System.Int32)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Sort()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Sort(System.Collections.Generic.IComparer<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Sort(System.Comparison<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.ToArray()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.TrimExcess()
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.TrueForAll(System.Predicate<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>)
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Capacity
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.Count
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.IsFixedSize
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.Generic.ICollection<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.IsReadOnly
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.IsReadOnly
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.List<Syncfusion.Pdf.Interactive.Pdf3DCrossSection>.System.Collections.IList.Item[System.Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class Pdf3DCrossSectionCollection : List<Pdf3DCrossSection>, IList<Pdf3DCrossSection>, ICollection<Pdf3DCrossSection>, IList, ICollection, IReadOnlyList<Pdf3DCrossSection>, IReadOnlyCollection<Pdf3DCrossSection>, IEnumerable<Pdf3DCrossSection>, IEnumerable
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3DAnnotation.
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 Pdf3DCrossSectionCollection.
Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections;
annotation.Views.Add(view);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DView
Dim view As New Pdf3DView()
'Create a new Pdf3DCrossSectionCollection.
Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Constructors
Pdf3DCrossSectionCollection()
Declaration
public Pdf3DCrossSectionCollection()
Properties
Item[Int32]
Gets or sets the Pdf3DCrossSection at the specified index.
Declaration
public Pdf3DCrossSection this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
Pdf3DCrossSection |
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3DAnnotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
//Create a new Pdf3DCrossSectionCollection.
Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections;
Pdf3DCrossSection crosssection =view.CrossSections[0];
annotation.Views.Add(view);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DView
Dim view As New Pdf3DView()
'Create a new Pdf3DCrossSectionCollection.
Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections
Dim crosssection As Pdf3DCrossSection=view.CrossSections[0]
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Methods
Add(Pdf3DCrossSection)
Adds the specified value.
Declaration
public int Add(Pdf3DCrossSection value)
Parameters
Type | Name | Description |
---|---|---|
Pdf3DCrossSection | value | The 3D cross section to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The index value of the section 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 Pdf3DAnnotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DCrossSection.
Pdf3DCrossSection crossSection = new Pdf3DCrossSection();
crossSection.Color = new PdfColor(Color.Blue);
crossSection.IntersectionIsVisible = true;
crossSection.IntersectionColor = new PdfColor(Color.Red);
crossSection.Opacity = 100;
//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 };
view.CrossSections.Add(crossSection);
annotation.Views.Add(view);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DCrossSection.
Dim crossSection As New Pdf3DCrossSection()
crossSection.Color = New PdfColor(Color.Blue)
crossSection.IntersectionIsVisible = True
crossSection.IntersectionColor = New PdfColor(Color.Red)
crossSection.Opacity = 100
'Create a new Pdf3DView.
Dim view As 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 }
view.CrossSections.Add(crossSection)
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document.
document.Close(True)
See Also
Contains(Pdf3DCrossSection)
Determines whether the specified cross section is in collection.
Declaration
public bool Contains(Pdf3DCrossSection value)
Parameters
Type | Name | Description |
---|---|---|
Pdf3DCrossSection | value |
Returns
Type | Description |
---|---|
System.Boolean | if it contains the specified value, set to |
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 Pdf3DAnnotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DCrossSection.
Pdf3DCrossSection crossSection = new Pdf3DCrossSection();
crossSection.Color = new PdfColor(Color.Blue);
crossSection.IntersectionIsVisible = true;
crossSection.IntersectionColor = new PdfColor(Color.Red);
//Create a new Pdf3DView.
Pdf3DView view = new Pdf3DView();
bool isExist = view.CrossSections.Contains(crossSection);
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document.
document.Close(true);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DCrossSection.
Dim crossSection As New Pdf3DCrossSection()
crossSection.Color = New PdfColor(Color.Blue)
crossSection.IntersectionIsVisible = True
crossSection.IntersectionColor = New PdfColor(Color.Red)
'Create a new Pdf3DView.
Dim view As New Pdf3DView()
Dim isExist As Boolean = view.CrossSections.Contains(crossSection)
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document.
document.Close(True)
See Also
IndexOf(Pdf3DCrossSection)
Searches and finds the index of the specified cross section from the collection.
Declaration
public int IndexOf(Pdf3DCrossSection value)
Parameters
Type | Name | Description |
---|---|---|
Pdf3DCrossSection | value | The Pdf3DCrossSection. |
Returns
Type | Description |
---|---|
System.Int32 |
Examples
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 Pdf3DAnnotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DCrossSection.
Pdf3DCrossSection crossSection = new Pdf3DCrossSection();
crossSection.Color = new PdfColor(Color.Blue);
crossSection.IntersectionIsVisible = true;
crossSection.IntersectionColor = new PdfColor(Color.Red);
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
//Add the cross section
view.CrossSections.Add(crossSection);
//Get the index of specified crossSection
int index = view.CrossSections.IndexOf(crossSection);
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DCrossSection.
Dim crossSection As New Pdf3DCrossSection()
crossSection.Color = New PdfColor(Color.Blue)
crossSection.IntersectionIsVisible = True
crossSection.IntersectionColor = New PdfColor(Color.Red)
'Create a new Pdf3DView
Dim view As New Pdf3DView()
'Add the cross section
view.CrossSections.Add(crossSection)
'Get the index of specified crossSection
Dim index As Integer = view.CrossSections.IndexOf(crossSection)
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Insert(Int32, Pdf3DCrossSection)
Inserts the cross section at specified index.
Declaration
public void Insert(int index, Pdf3DCrossSection value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Pdf3DCrossSection | value | The value. |
Examples
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 Pdf3DAnnotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DCrossSection.
Pdf3DCrossSection crossSection = new Pdf3DCrossSection();
crossSection.Color = new PdfColor(Color.Blue);
crossSection.IntersectionIsVisible = true;
crossSection.IntersectionColor = new PdfColor(Color.Red);
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
//Insert the cross section at specified index
view.CrossSections.Insert(0,crossSection);
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DCrossSection.
Dim crossSection As New Pdf3DCrossSection()
crossSection.Color = New PdfColor(Color.Blue)
crossSection.IntersectionIsVisible = True
crossSection.IntersectionColor = New PdfColor(Color.Red)
'Create a new Pdf3DView
Dim view As New Pdf3DView()
'Insert the cross section at specified index
view.CrossSections.Insert(0,crossSection)
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Remove(Pdf3DCrossSection)
Removes the specified cross section form the collection.
Declaration
public void Remove(Pdf3DCrossSection value)
Parameters
Type | Name | Description |
---|---|---|
Pdf3DCrossSection | value | The cross section to be removed. |
Examples
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 Pdf3DAnnotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DCrossSection.
Pdf3DCrossSection crossSection = new Pdf3DCrossSection();
crossSection.Color = new PdfColor(Color.Blue);
crossSection.IntersectionIsVisible = true;
crossSection.IntersectionColor = new PdfColor(Color.Red);
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CrossSections.Add(crossSection);
//Remove the cross section
view.CrossSections.Remove(crossSection);
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
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 Pdf3DAnnotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DCrossSection.
Dim crossSection As New Pdf3DCrossSection()
crossSection.Color = New PdfColor(Color.Blue)
crossSection.IntersectionIsVisible = True
crossSection.IntersectionColor = New PdfColor(Color.Red)
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CrossSections.Add(crossSection)
'Remove the cross section
view.CrossSections.Remove(crossSection)
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable