public final class GraphNote extends XmlEntityWithInternals
Represents a note in a Graph
.
[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,100,400); sec1.getParagraphs().add(graph1); Circle circle1 = new Circle(graph1,200,50,30); graph1.getShapes().add(circle1); GraphNote note1 = new GraphNote(sec1); note1.setContent ( "This is a circle."); note1.setPositionX ( 160); note1.setPositionY ( 10); graph1.getGraphNotes().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>
Modifier and Type | Field and Description |
---|---|
String |
Content
Gets or sets a string that indicates the content of the note.
|
int |
Direction
Gets or sets a direction of a text from it's origin.
|
float |
HorizontalScaling
Gets or sets horizontal scale of a text.
|
int |
LongSideAlignment
Gets or sets an alignment of text relatively to long side of text.
|
float |
PositionX
Gets or sets a float value that indicates the x-coordinate of the beginning position of the note.
|
float |
PositionY
Gets or sets a float value that indicates the y-coordinate of the beginning position of the note.
|
float |
RotationAngle
Gets or sets a rotate angle of the GraphNote.
|
TextInfo |
TextInfo
Gets or sets a
TextInfo object that indicates the text info of the note. |
int |
VerticalTextRotationAngle
Gets or sets a
VerticalTextRotationType object that indicates the text rotation angle |
public int VerticalTextRotationAngle
Gets or sets a VerticalTextRotationType
object that indicates the text rotation angle
public String Content
Gets or sets a string that indicates the content of the note.
public TextInfo TextInfo
Gets or sets a TextInfo
object that indicates the text info of the note.
public int LongSideAlignment
Gets or sets an alignment of text relatively to long side of text.
public int Direction
Gets or sets a direction of a text from it's origin.
public float HorizontalScaling
Gets or sets horizontal scale of a text.
public float RotationAngle
Gets or sets a rotate angle of the GraphNote.
public float PositionX
Gets or sets a float value that indicates the x-coordinate of the beginning position of the note.
public float PositionY
Gets or sets a float value that indicates the y-coordinate of the beginning position of the note.
public GraphNote()
Initializes a new instance of the GraphNote
class.
public GraphNote(Section section)
Initializes a new instance of the GraphNote
class.
section
- The section object.Copyright © 2014 Aspose. All Rights Reserved.