public class ColumnInfo extends Object
Encapsulates info for page columns.
[C#] //Instantiate a Pdf object Pdf pdf1 = new Pdf(); //Add a section to the Pdf Section sec1 = pdf1.Sections.Add(); //Add two columns in the section sec1.ColumnInfo.ColumnCount = 2; //Set the spacing between the columns sec1.ColumnInfo.ColumnSpacing = "15"; //Set the widths of the columns sec1.ColumnInfo.ColumnWidths = "250 150"; ... //Save the Pdf pdf1.Save(...); [Visual Basic] 'Instantiate a Pdf object Dim pdf1 As Pdf = New Pdf 'Add a section to the Pdf Dim sec1 As Section = pdf1.Sections.Add() 'Add two columns in the section sec1.ColumnInfo.ColumnCount = 2 'Set the spacing between the columns sec1.ColumnInfo.ColumnSpacing = "15" 'Set the widths of the columns sec1.ColumnInfo.ColumnWidths = "250 150" ... 'Save the Pdf pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section ColumnCount="2" ColumnSpacing="15" ColumnWidths="250 150"> ... </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
float[] |
colXPos |
float[] |
spacingArr |
float[] |
widthArr |
Constructor and Description |
---|
ColumnInfo()
Initializes a new instance of the
ColumnInfo class. |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone() |
int |
getColumnCount()
Gets or sets a int value that indicates the number of columns in each page in the section.
|
String |
getColumnSpacing()
Gets or sets a string that contains the spacing between columns in each page in the section.
|
String |
getColumnWidths()
Gets or sets a string that contains the width of columns in each page in the section.
|
int |
getCurrentColumn() |
void |
setColumnCount(int value) |
void |
setColumnSpacing(String value) |
void |
setColumnWidths(String value) |
void |
setCurrentColumn(int value) |
public float[] widthArr
public float[] spacingArr
public float[] colXPos
public ColumnInfo()
Initializes a new instance of the ColumnInfo
class.
public int getColumnCount()
Gets or sets a int value that indicates the number of columns in each page in the section.
public void setColumnCount(int value)
public int getCurrentColumn()
public void setCurrentColumn(int value)
public String getColumnWidths()
Gets or sets a string that contains the width of columns in each page in the section. The value of each column should be separated by blank.The default unit is point, but cm, inch and percentage of available width are also supported.For example,"120 2.5cm 1.5inch",or "60% 40%". The max column number is 16.
ColumnCount
and ColumnSpacing
.
public void setColumnWidths(String value)
public String getColumnSpacing()
Gets or sets a string that contains the spacing between columns in each page in the section. The value of each spacing should be separated by blank. The default unit is point, but cm and inch are also supported.For example,"120 2.5cm 1.5inch".
public void setColumnSpacing(String value)
public Object deepClone()
Copyright © 2016 Aspose. All Rights Reserved.