public class RectData extends Object
Represents a rectangle data structure which specifies the low-left and up-right coordinates.
[C#] Pdf pdf1 = new Pdf(); RectData rect1 = new RectData(); rect1.LowerLeftX = 100; rect1.LowerLeftY = 100; rect1.UperRightX = PageSize.A4Width; rect1.UperRightY = PageSize.A4Height; pdf1.PageSetup.CropBox = rect1; Section sec1 = pdf1.Sections.Add(); Text text1 = new Text(sec1,"this is text content"); text1.Margin.Top = 30; sec1.Paragraphs.Add(text1); pdf1.Save(...); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim rect1 As RectData = New RectData() rect1.LowerLeftX = 100 rect1.LowerLeftY = 100 rect1.UperRightX = PageSize.A4Width rect1.UperRightY = PageSize.A4Height pdf1.PageSetup.CropBox = rect1 Dim sec1 As Section = pdf1.Sections.Add() Dim text1 As Text = New Text(sec1,"this is text content") text1.Margin.Top = 30 sec1.Paragraphs.Add(text1) pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf" CropBox="100 100 595 842"> <Section> <Text MarginTop="30"> <Segment>this is text content</Segment> </Text> </Section> </Pdf>
Constructor and Description |
---|
RectData() |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clones a new
RectData object. |
float |
getLowerLeftX()
Gets or sets a float value that indicates the x-coordinate of the lower-left point.
|
float |
getLowerLeftY()
Gets or sets a float value that indicates the y-coordinate of the lower-left point.
|
float |
getUperRightX()
Gets or sets a float value that indicates the x-coordinate of the upper-right point.
|
float |
getUperRightY()
Gets or sets a float value that indicates the y-coordinate of the upper-right point.
|
void |
setLowerLeftX(float value) |
void |
setLowerLeftY(float value) |
void |
setUperRightX(float value) |
void |
setUperRightY(float value) |
public float getLowerLeftX()
Gets or sets a float value that indicates the x-coordinate of the lower-left point.
public void setLowerLeftX(float value)
public float getLowerLeftY()
Gets or sets a float value that indicates the y-coordinate of the lower-left point.
public void setLowerLeftY(float value)
public float getUperRightX()
Gets or sets a float value that indicates the x-coordinate of the upper-right point.
public void setUperRightX(float value)
public float getUperRightY()
Gets or sets a float value that indicates the y-coordinate of the upper-right point.
public void setUperRightY(float value)
public Object deepClone()
Clones a new RectData
object.
RectData
object.Copyright © 2016 Aspose. All Rights Reserved.