public class Graph extends Paragraph implements IHyperlinkCarrier
Represents a graph Paragraph
.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,100,400); sec1.Paragraphs.Add(graph1); float[] posArr = new float[]{0,0,200,80,300,40,350,90}; Curve curve1 = new Curve(graph1,posArr); graph1.Shapes.Add(curve1); 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 posArr() As Single = New Single() {0, 0, 200, 80, 300, 40, 350, 90} Dim curve1 As Curve = New Curve(graph1, posArr) graph1.Shapes.Add(curve1) pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Curve Position="0 0 200 80 300 40 350 90" /> </Graph> </Section> </Pdf>
Paragraph.VerticalPositionInfo
Modifier and Type | Field and Description |
---|---|
boolean |
isUseTOCasTargetList |
absolutePosX, absolutePosY, ClippingArea, FixedHeight, FixedWidth, isAbsoluteLayout, isFixedLayout, IsNeedAddToPage, IsPositionGot, IsPositionProcessed, isRelativeLayout, MayNeedReprocess, NextParagraph, posBottom, posLeft, posRight, posTop, RefPara, relativePosX, relativePosY, VerticalPosInfo
Constructor and Description |
---|
Graph()
Initializes a new instance of the
Graph class. |
Graph(float width,
float height)
Initializes a new instance of the
Graph class. |
Graph(HeaderFooter hf)
Initializes a new instance of the
Graph class. |
Graph(HeaderFooter hf,
float width,
float height)
Initializes a new instance of the
Graph class. |
Graph(Section section)
Initializes a new instance of the
Graph class. |
Graph(Section section,
float width,
float height)
Initializes a new instance of the
Graph class. |
Modifier and Type | Method and Description |
---|---|
Object |
completeClone()
Clones a new
Graph object. |
int |
getAlignment()
Gets or sets a
AlignmentType that indicates the paragraph
alignment type. |
int |
getAutoNumber()
Gets or sets a automated seqence number for Graph objects.
|
ClippingPath |
getClipping() |
float |
getGraphHeight()
Gets or sets a float value that indicates the graph height.
|
GraphInfo |
getGraphInfo()
Gets or sets a
GraphInfo object that indicates the graph
info. |
GraphNotes |
getGraphNotes()
Gets or sets a
GraphNotes collection that indicates all notes
in the graph. |
float |
getGraphWidth()
Gets or sets a float value that indicates the graph width.
|
Hyperlink |
getHostedHyperlink() |
Hyperlink |
getHyperlink()
Gets or sets a
Hyperlink object that indicates the hyper link
info of the graph. |
float |
getRotatingAngle()
Gets or sets a float value that indicates the rotation angle of the
coordinate system when transforming a coordinate system.
|
Shapes |
getShapes()
Gets or sets a
Shapes collection that indicates all shapes in
the graph. |
TextInfo |
getTextInfo()
Gets or sets a
TextInfo object that indicates the text info
of the graph title. |
String |
getTitle()
Gets or sets a string value that indicates the title of the graph.
|
int |
getZIndex()
Gets or sets a int value that indicates the Z-order of the graph.
|
boolean |
isFootLine()
Gets or sets a bool value that indicates whether or not the current
graph is a foot line for footnote.
|
void |
isFootLine(boolean value) |
boolean |
isNeedRepeating()
Gets or sets a bool value that indicates whether the paragraph need
to be repeated on next page.
|
void |
isNeedRepeating(boolean value) |
void |
setAlignment(int value) |
void |
setAutoNumber(int value) |
void |
setClipping(ClippingPath value) |
void |
setGraphHeight(float value) |
void |
setGraphInfo(GraphInfo value) |
void |
setGraphNotes(GraphNotes value) |
void |
setGraphWidth(float value) |
void |
setHyperlink(Hyperlink value) |
void |
setRotatingAngle(float value) |
void |
setShapes(Shapes value) |
void |
setTextInfo(TextInfo value) |
void |
setTitle(String value) |
void |
setZIndex(int value) |
copyTo, getBookmarked, getComposer, getFootNoteProcessed, getHeight, getID, getLeft, getMargin, getNeedReprocess, getNextParagraphInHeading, getPageNumber, getParentCell, getPositioningType, getPosX, getPosY, getRealPageNumber, getReferencedParagraphWidth, getReferenceParagraphID, getRefPageNumber, getSection, getTop, getWidth, isDisabled, isDisabled, isEndNote, isFirstParagraph, isFirstParagraph, isFirstParagraphInColumn, isFirstParagraphInColumn, isFootNote, isFootNote, isInHeaderFooter, isInHeaderFooter, isInList, isInList, isKeptTogether, isKeptTogether, isKeptWithNext, isKeptWithNext, isOnOddPage, isOnOddPage, setBookmarked, setFootNoteProcessed, setHeight, setID, setLeft, setMargin, setNeedReprocess, setNextParagraphInHeading, setPageNumber, setParentCell, setParentIsTable, setPositioningType, setPosX, setPosY, setRealPageNumber, setReferencedParagraphWidth, setReferenceParagraphID, setRefPageNumber, setSection, setTop, setWidth
public Graph()
Initializes a new instance of the Graph
class.
public Graph(float width, float height)
Initializes a new instance of the Graph
class.
width
- The width of the graph.height
- The height of the graph.public Graph(Section section)
Initializes a new instance of the Graph
class.
section
- The specified Section
object. Section
object. public Graph(Section section, float width, float height)
Initializes a new instance of the Graph
class.
section
- The specified Section
object.width
- The width of the graph.height
- The height of the graph. Section
object.
public Graph(HeaderFooter hf)
Initializes a new instance of the Graph
class.
hf
- The specified HeaderFooter
object. HeaderFooter
object. public Graph(HeaderFooter hf, float width, float height)
Initializes a new instance of the Graph
class.
hf
- The specified HeaderFooter
object.width
- The width of the graph.height
- The height of the graph. HeaderFooter
object. public GraphInfo getGraphInfo()
Gets or sets a GraphInfo
object that indicates the graph
info.
public void setGraphInfo(GraphInfo value)
public boolean isNeedRepeating()
Gets or sets a bool value that indicates whether the paragraph need to be repeated on next page. Default value is false.The attribute is only valid when the paragraph itself and the object its ReferenceParagraphID referred to both are included in RepeatingRows.
public void isNeedRepeating(boolean value)
public Hyperlink getHyperlink()
Gets or sets a Hyperlink
object that indicates the hyper link
info of the graph.
public void setHyperlink(Hyperlink value)
public Shapes getShapes()
Gets or sets a Shapes
collection that indicates all shapes in
the graph.
public void setShapes(Shapes value)
public int getAlignment()
Gets or sets a AlignmentType
that indicates the paragraph
alignment type.
public void setAlignment(int value)
public String getTitle()
Gets or sets a string value that indicates the title of the graph.
public void setTitle(String value)
public TextInfo getTextInfo()
Gets or sets a TextInfo
object that indicates the text info
of the graph title.
public void setTextInfo(TextInfo value)
public GraphNotes getGraphNotes()
Gets or sets a GraphNotes
collection that indicates all notes
in the graph.
public void setGraphNotes(GraphNotes value)
public float getGraphWidth()
Gets or sets a float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth="10cm" or GraphWidth="5inch".
public void setGraphWidth(float value)
public float getGraphHeight()
Gets or sets a float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight="10cm" or GraphHeight="5inch".
public void setGraphHeight(float value)
public boolean isFootLine()
Gets or sets a bool value that indicates whether or not the current graph is a foot line for footnote.
public void isFootLine(boolean value)
public int getZIndex()
Gets or sets a int value that indicates the Z-order of the graph. A graph with larger ZIndex will be placed over the graph with smaller ZIndex. ZIndex can be negative. Graph with negative ZIndex will be placed behind the text in the page.
public void setZIndex(int value)
public Object completeClone()
Clones a new Graph
object. Both format and shapes are cloned.
completeClone
in class Paragraph
Graph
object.public float getRotatingAngle()
Gets or sets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.
public void setRotatingAngle(float value)
public int getAutoNumber()
Gets or sets a automated seqence number for Graph objects. The default first value is 1. If set to be n,the value of the next Graph will be (n+1).
public void setAutoNumber(int value)
public ClippingPath getClipping()
public void setClipping(ClippingPath value)
public Hyperlink getHostedHyperlink()
getHostedHyperlink
in interface IHyperlinkCarrier
Copyright © 2016 Aspose. All Rights Reserved.