public class GraphNotes
extends com.aspose.ms.System.Collections.CollectionBase
Represents a collection of GraphNote
objects.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,100,400); sec1.Paragraphs.Add(graph1); Circle circle1 = new Circle(graph1,200,50,30); graph1.Shapes.Add(circle1); GraphNote note1 = new GraphNote(sec1); note1.Content = "This is a circle."; note1.PositionX = 160; note1.PositionY = 10; graph1.GraphNotes.Add(note1); pdf1.Save(...); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim graph1 As Graph = New Graph(sec1, 100, 400) sec1.Paragraphs.Add(graph1) Dim circle1 As Circle = New Circle(graph1, 200, 50, 30) graph1.Shapes.Add(circle1) Dim note1 As GraphNote = New GraphNote(sec1) note1.Content = "This is a circle." note1.PositionX = 160 note1.PositionY = 10 graph1.GraphNotes.Add(note1) pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Circle CenterPosition="200 50" Radius="30" /> <Note Position="160 10">This is a circle.</Note> </Graph> </Section> </Pdf>
Constructor and Description |
---|
GraphNotes()
Initializes a new instance of the
GraphNotes class. |
Modifier and Type | Method and Description |
---|---|
void |
add(GraphNote graphNote)
Adds a new
GraphNote object into the collection. |
void |
copyTo(GraphNote[] graphNoteArray,
int index)
Copies the elements to a
GraphNote object array, starting at a specified array index. |
GraphNote |
get_Item(int index)
Gets or sets a
GraphNote object from the collection according to GraphNote index. |
void |
insert(GraphNote noteToInsertAfter,
GraphNote newNote)
Inserts a new
GraphNote object into the collection after specified GraphNote object. |
void |
insert(int index,
GraphNote graphNote)
Inserts a new
GraphNote object into the collection at specified position. |
void |
remove(GraphNote noteToRemove)
Removes a
GraphNote object from the collection. |
void |
set_Item(int index,
GraphNote value) |
public GraphNotes()
Initializes a new instance of the GraphNotes
class.
public void add(GraphNote graphNote)
Adds a new GraphNote
object into the collection.
graphNote
- The GraphNote
object to be added.public GraphNote get_Item(int index)
Gets or sets a GraphNote
object from the collection according to GraphNote index.
get_Item
in interface com.aspose.ms.System.Collections.IList
get_Item
in class com.aspose.ms.System.Collections.CollectionBase
public void set_Item(int index, GraphNote value)
public void remove(GraphNote noteToRemove)
Removes a GraphNote
object from the collection.
noteToRemove
- The GraphNote
object to be romoved.public void insert(int index, GraphNote graphNote)
Inserts a new GraphNote
object into the collection at specified position.
index
- The zero-based index at which new GraphNote
object should be inserted.graphNote
- The GraphNote
object to be inserted.public void insert(GraphNote noteToInsertAfter, GraphNote newNote)
Inserts a new GraphNote
object into the collection after specified GraphNote object.
noteToInsertAfter
- The GraphNote
object to insert after.newNote
- The GraphNote
object to be inserted.public void copyTo(GraphNote[] graphNoteArray, int index)
Copies the elements to a GraphNote
object array, starting at a specified array index.
graphNoteArray
- The GraphNote
object array.index
- The start index.Copyright © 2016 Aspose. All Rights Reserved.