public class Row extends Object implements com.aspose.ms.System.ICloneable
Repserents a row in a Aspose.Pdf.Table
.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Aspose.Pdf.Generator.Table table1 = new Aspose.Pdf.Generator.Table(); sec1.Paragraphs.Add(table1); table1.ColumnWidths = "70 2cm"; Row row1 = table1.Rows.Add(); Cell cell1Row1 = row1.Cells.Add("ColumnsSpan = 2"); cell1Row1.ColumnsSpan = 2; cell1Row1.Border = new BorderInfo((int)BorderSide.All,0.5F); Row row2 = table1.Rows.Add(); Cell cell1Row2 = row2.Cells.Add("cell1"); cell1Row2.Border = new BorderInfo((int)BorderSide.All,0.5F); Cell cell2Row2 = row2.Cells.Add("cell2"); cell2Row2.Border = new BorderInfo((int)BorderSide.All,0.5F,new Aspose.Pdf.Generator.Color("Red")); pdf1.Save(...); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim table1 As Aspose.Pdf.Generator.Table = New Aspose.Pdf.Generator.Table() sec1.Paragraphs.Add(table1) table1.ColumnWidths = "70 2cm" Dim row1 As Row = table1.Rows.Add() Dim cell1Row1 As Cell = row1.Cells.Add("ColumnsSpan = 2") cell1Row1.ColumnsSpan = 2 cell1Row1.Border = New BorderInfo(CType(BorderSide.All, Integer), 0.5) Dim row2 As Row = table1.Rows.Add() Dim cell1Row2 As Cell = row2.Cells.Add("cell1") cell1Row2.Border = New BorderInfo(CType(BorderSide.All, Integer), 0.5) Dim cell2Row2 As Cell = row2.Cells.Add("cell2") cell2Row2.Border = New BorderInfo(CType(BorderSide.All, Integer), 0.5, New Aspose.Pdf.Generator.Color("Red")) pdf1.Save(...) [XML] <Pdf xmlns="Aspose.Pdf"> <Section> <Table ColumnWidths="70 2cm"> <Row> <Cell ColumnsSpan="2"> <Border> <All LineWidth="0.5"></All> </Border> <Text> <Segment>ColumnsSpan = 2</Segment> </Text> </Cell> </Row> <Row> <Cell> <Border> <All LineWidth="0.5"></All> </Border> <Text> <Segment>cell1</Segment> </Text> </Cell> <Cell> <Border> <All LineWidth="0.5" Color="Red"></All> </Border> <Text> <Segment>cell2</Segment> </Text> </Cell> </Row> </Table> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
int |
index |
boolean |
isBorderSetbyUser |
boolean |
isCollapsed |
boolean |
isDefaultBorderSetbyUser |
boolean |
isPositionGot |
Cells |
RowSpanRefCells |
Cells |
VirtualCells
Ϊ�˴���RowSpan��ҳʱ����cell�����⣬���������cell������RowSpan����ɵĿ�ȱcell������Cell����䡣
���ڸ�row����ҳʱ��������cell���ʵ�ʵ�cell�Բ����ȱ��cell��
|
Constructor and Description |
---|
Row(Table table)
Initializes a new instance of the
Row class in a table. |
Modifier and Type | Method and Description |
---|---|
Object |
completeClone()
Clones a new
Row object. |
boolean |
containsColSpans() |
Object |
deepClone()
Clones a new
Row object. |
Color |
getBackgroundColor()
Gets or sets a
Aspose.Pdf.Color object that indicates the background color of the
row. |
BorderInfo |
getBorder()
Gets or sets a
BorderInfo object that indicates the row border info. |
Cells |
getCells()
Gets or sets a
Cells collection that indicates all cells in the row. |
BorderInfo |
getDefaultCellBorder()
Gets or sets a
BorderInfo object that indicates the default border style for all cells
in this row. |
TextInfo |
getDefaultCellTextInfo()
Gets or sets a
TextInfo object that indicates the text format info of the row. |
int |
getDefaultHorizAlignmentOfCells() |
MarginInfo |
getDefaultRowCellPadding()
Gets or sets a
MarginInfo object that indicates the default cell padding in the row. |
float |
getFixedRowHeight()
Gets or sets a float value that indicates the fixed row height.
|
float |
getHeight()
Represents a float value that indicates the row height.
|
float |
getHeight(Pdf doc) |
float |
getHeightWithoutRowSpan(Pdf doc) |
String |
getID()
Gets or sets a string that indicates the ID of the cell.
|
boolean |
getisNeedAjustByBaseLineForVertAlygnTypeTop()
Gets or sets a whether it's cells by default needs ajust vert align by baseline
of content's paragraphs
|
float |
getPosX()
Represents a float value that indicates the x-coordinate of the row beginning position.
|
float |
getPosY()
Represents a float value that indicates the y-coordinate of the row beginning position.
|
Table |
getTable()
Gets or sets a
Table reference which indicates where the row is in. |
int |
getVerticalAlignment()
Gets or sets a
VerticalAlignmentType object that indicates the vertical
alignment type of all cells in this row. |
boolean |
isBroken()
Gets or sets a bool value that indicates whether the row can be broken or not when the row spans two pages.
|
void |
isBroken(boolean value) |
boolean |
isDefaultHorAlignmentSet() |
boolean |
isDisabled()
Gets or sets a bool value that indicates whether this row is disabled.
|
void |
isDisabled(boolean value) |
boolean |
isInNewPage()
Gets or sets a bool value that indicates whether to split the table from this row and display the subsequent rows on the next page.
|
void |
isInNewPage(boolean value) |
boolean |
isKeptWithNext() |
boolean |
isVerticalAlignmentSet() |
void |
setBackgroundColor(Color value) |
void |
setBorder(BorderInfo value) |
void |
setCells(Cells value) |
void |
setDefaultCellBorder(BorderInfo value) |
void |
setDefaultCellTextInfo(TextInfo value) |
void |
setDefaultHorizAlignmentOfCells(int value) |
void |
setDefaultRowCellPadding(MarginInfo value) |
void |
setFixedRowHeight(float value) |
void |
setHeight(float value) |
void |
setID(String value) |
void |
setisNeedAjustByBaseLineForVertAlygnTypeTop(boolean value) |
void |
setPosX(float value) |
void |
setPosY(float value) |
void |
setTable(Table value) |
void |
setVerticalAlignment(int value) |
public int index
public boolean isBorderSetbyUser
public Cells RowSpanRefCells
public boolean isDefaultBorderSetbyUser
public boolean isCollapsed
public Cells VirtualCells
Ϊ�˴���RowSpan��ҳʱ����cell�����⣬���������cell������RowSpan����ɵĿ�ȱcell������Cell����䡣 ���ڸ�row����ҳʱ��������cell���ʵ�ʵ�cell�Բ����ȱ��cell��
public boolean isPositionGot
public Row(Table table)
Initializes a new instance of the Row
class in a table.
table
- The Table
object where the row is in.public BorderInfo getBorder()
Gets or sets a BorderInfo
object that indicates the row border info.
public void setBorder(BorderInfo value)
public boolean containsColSpans()
public boolean getisNeedAjustByBaseLineForVertAlygnTypeTop()
Gets or sets a whether it's cells by default needs ajust vert align by baseline of content's paragraphs
public void setisNeedAjustByBaseLineForVertAlygnTypeTop(boolean value)
public float getHeight()
Represents a float value that indicates the row height.
public void setHeight(float value)
public float getPosX()
Represents a float value that indicates the x-coordinate of the row beginning position.
public void setPosX(float value)
public float getPosY()
Represents a float value that indicates the y-coordinate of the row beginning position.
public void setPosY(float value)
public Cells getCells()
Gets or sets a Cells
collection that indicates all cells in the row.
public void setCells(Cells value)
public String getID()
Gets or sets a string that indicates the ID of the cell.
public void setID(String value)
public Table getTable()
Gets or sets a Table
reference which indicates where the row is in. This property
is used in api mode.
public void setTable(Table value)
public TextInfo getDefaultCellTextInfo()
Gets or sets a TextInfo
object that indicates the text format info of the row. If you
want to set text format for all cells that have already been added to the row, please do not set
it directly but follow the method in the example.
[C#] TextInfo info = row.DefaultCellTextInfo.Clone() as TextInfo; info.BackgroundColor = new Color("Blue"); row.DefaultCellTextInfo = info; [VisualBasic] Dim info As TextInfo = row.DefaultCellTextInfo.Clone() info.BackgroundColor = new Color("Blue") row.DefaultCellTextInfo = info
public void setDefaultCellTextInfo(TextInfo value)
public BorderInfo getDefaultCellBorder()
Gets or sets a BorderInfo
object that indicates the default border style for all cells
in this row.
public void setDefaultCellBorder(BorderInfo value)
public MarginInfo getDefaultRowCellPadding()
Gets or sets a MarginInfo
object that indicates the default cell padding in the row.
public void setDefaultRowCellPadding(MarginInfo value)
public int getVerticalAlignment()
Gets or sets a VerticalAlignmentType
object that indicates the vertical
alignment type of all cells in this row.
public void setVerticalAlignment(int value)
public int getDefaultHorizAlignmentOfCells()
public void setDefaultHorizAlignmentOfCells(int value)
public boolean isDefaultHorAlignmentSet()
public boolean isVerticalAlignmentSet()
public float getFixedRowHeight()
Gets or sets a float value that indicates the fixed row height. If the fixed row height is set, the property of IsBroken is disabled unless the real height of the row is out of the margin bound. When the value is too small, it will be enlarged automatically.
public void setFixedRowHeight(float value)
public Object deepClone()
Clones a new Row
object. This method clones only the format but not contents of the Row.
deepClone
in interface com.aspose.ms.System.ICloneable
public Object completeClone()
Clones a new Row
object. This method clones both format and contents of the Row.
public boolean isDisabled()
Gets or sets a bool value that indicates whether this row is disabled. The default value is false. If this property is set to true, this row will not be rendered.
public void isDisabled(boolean value)
public boolean isKeptWithNext()
public boolean isInNewPage()
Gets or sets a bool value that indicates whether to split the table from this row and display the subsequent rows on the next page. The property doesn't support nested table.
public void isInNewPage(boolean value)
public Color getBackgroundColor()
Gets or sets a Aspose.Pdf.Color
object that indicates the background color of the
row.
public void setBackgroundColor(Color value)
public boolean isBroken()
Gets or sets a bool value that indicates whether the row can be broken or not when the row spans two pages. Default value is true.
public void isBroken(boolean value)
public float getHeight(Pdf doc)
public float getHeightWithoutRowSpan(Pdf doc)
Copyright © 2016 Aspose. All Rights Reserved.