public class Rectangle extends ClosedShape
Represents a rectangle Shape
in a Pdf document.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,400,100); sec1.Paragraphs.Add(graph1); Aspose.Pdf.Generator.Rectangle rect1 = new Aspose.Pdf.Generator.Rectangle(graph1,50,10,100,50); graph1.Shapes.Add(rect1); pdf1.Save(...); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim graph1 As Graph = New Graph(sec1, 400, 100) sec1.Paragraphs.Add(graph1) Dim rect1 As Aspose.Pdf.Generator.Rectangle = New Aspose.Pdf.Generator.Rectangle(graph1, 50, 10, 100, 50) graph1.Shapes.Add(rect1) pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Width="400" Height="100"> <Rectangle Position="50 10 100 50" /> </Graph> </Section> </Pdf>
Constructor and Description |
---|
Rectangle()
Initializes a new instance of the
Rectangle class. |
Rectangle(float left,
float bottom,
float width,
float height)
Initializes a new instance of the
Rectangle class. |
Rectangle(Graph graph)
Initializes a new instance of the
Rectangle class. |
Rectangle(Graph graph,
float left,
float bottom,
float width,
float height)
Initializes a new instance of the
Rectangle class. |
Modifier and Type | Method and Description |
---|---|
float |
getBottom()
Gets or sets a float value that indicates the bottom position of the
rectangle.
|
float |
getHeight()
Gets or sets a float value that indicates the height of the
rectangle.
|
float |
getLeft()
Gets or sets a float value that indicates the left position of the
rectangle.
|
float |
getRadiusForRoundCorner()
Gets or sets a float value that indicates the radius for the round
corner.
|
float |
getWidth()
Gets or sets a float value that indicates the width of the rectangle.
|
void |
setBottom(float value) |
void |
setHeight(float value) |
void |
setLeft(float value) |
void |
setRadiusForRoundCorner(float value) |
void |
setWidth(float value) |
getBlendInfo, getClipShapes, getEndFillArea, getGraph, getGraphicState, getGraphInfo, getID, getOpacity, getStrokeOpacity, isBoundingBoxRelative, isBoundingBoxRelative, setBlendInfo, setClipShapes, setEndFillArea, setGraph, setGraphInfo, setID, setOpacity, setStrokeOpacity
public Rectangle()
Initializes a new instance of the Rectangle
class.
public Rectangle(float left, float bottom, float width, float height)
Initializes a new instance of the Rectangle
class.
left
- The left position of the rectangle.bottom
- The bottom position of the rectangle.height
- The height of the rectangle.width
- The width of the rectangle.public Rectangle(Graph graph)
Initializes a new instance of the Rectangle
class.
graph
- The specified Graph
object. Graph
object. public Rectangle(Graph graph, float left, float bottom, float width, float height)
Initializes a new instance of the Rectangle
class.
graph
- The specified Graph
object.left
- The left position of the rectangle.bottom
- The bottom position of the rectangle.height
- The height of the rectangle.width
- The width of the rectangle. Graph
object.
public float getLeft()
Gets or sets a float value that indicates the left position of the rectangle.
public void setLeft(float value)
public float getBottom()
Gets or sets a float value that indicates the bottom position of the rectangle.
public void setBottom(float value)
public float getWidth()
Gets or sets a float value that indicates the width of the rectangle.
public void setWidth(float value)
public float getHeight()
Gets or sets a float value that indicates the height of the rectangle.
public void setHeight(float value)
public float getRadiusForRoundCorner()
Gets or sets a float value that indicates the radius for the round corner.
public void setRadiusForRoundCorner(float value)
Copyright © 2016 Aspose. All Rights Reserved.