public class Table extends Object
Represents a table in a Project
Constructor and Description |
---|
Table()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
boolean |
getAdjustHeaderRowHeight()
Returns a flag which determines whether the header row height of the table can be adjusted.
|
int |
getDateFormat()
Gets the date format of the table.
|
int |
getIndex()
Gets the index of a Table object in the Tables containing object.
|
boolean |
getLockFirstColumn()
Returns a flag which determines whether the first column of a table is locked or editable.
|
String |
getName()
Gets the name of a Table object.
|
Project |
getParentProject()
Gets the parent of the Table object.
|
int |
getRowHeight()
Gets the row height in a table, where the row height is the number of lines of text.
|
boolean |
getShowAddNewColumn()
Returns a flag which determines whether to show 'Add New Column' interface.
|
boolean |
getShowInMenu()
True if Project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
|
TableFieldCollection |
getTableFields()
Gets a TableFields collection representing the fields in the table.
|
int |
getTableType()
Gets the table type for the specified table.
|
int |
getUid()
The unique identifier of a table.
|
int |
hashCode()
Returns a hash code for this Table.
|
void |
setAdjustHeaderRowHeight(boolean value)
Sets a flag which determines whether the header row height of the table can be adjusted.
|
void |
setDateFormat(int value)
Sets the date format of the table.
|
void |
setLockFirstColumn(boolean value)
Sets a flag which determines whether the first column of a table is locked or editable.
|
void |
setName(String value)
Sets the name of a Table object.
|
void |
setRowHeight(int value)
Sets the row height in a table, where the row height is the number of lines of text.
|
void |
setShowAddNewColumn(boolean value)
Sets a flag which determines whether to show 'Add New Column' interface.
|
void |
setShowInMenu(boolean value)
Sets a flag which specifies whether to show the table name in the Tables drop-down list on the View tab of the Ribbon.
|
public boolean getAdjustHeaderRowHeight()
Returns a flag which determines whether the header row height of the table can be adjusted.
public void setAdjustHeaderRowHeight(boolean value)
Sets a flag which determines whether the header row height of the table can be adjusted.
value
- a flag which determines whether the header row height of the table can be adjusted.public int getDateFormat()
Gets the date format of the table.
DateFormat
class.public void setDateFormat(int value)
Sets the date format of the table.
value
- one of the values of the DateFormat
class.public int getIndex()
Gets the index of a Table object in the Tables containing object.
Read-only int
.
public boolean getLockFirstColumn()
Returns a flag which determines whether the first column of a table is locked or editable.
public void setLockFirstColumn(boolean value)
Sets a flag which determines whether the first column of a table is locked or editable.
value
- a flag which determines whether the first column of a table is locked or editable.public String getName()
Gets the name of a Table object.
Read/write string
.
public void setName(String value)
value
- the specified value.public Project getParentProject()
Gets the parent of the Table object.
Read-only Project
.
public int getRowHeight()
Gets the row height in a table, where the row height is the number of lines of text.
public void setRowHeight(int value)
Sets the row height in a table, where the row height is the number of lines of text.
value
- the specified row height in a table, where the row height is the number of lines of text.public boolean getShowAddNewColumn()
Returns a flag which determines whether to show 'Add New Column' interface. Supported by MSP 2010 version and later.
public void setShowAddNewColumn(boolean value)
Sets a flag which determines whether to show 'Add New Column' interface. Supported by MSP 2010 version and later.
value
- a flag which determines whether to show 'Add New Column' interface.public boolean getShowInMenu()
True if Project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
Read/write bool
.
public void setShowInMenu(boolean value)
value
- the specified value.public TableFieldCollection getTableFields()
Gets a TableFields collection representing the fields in the table.
public int getTableType()
Gets the table type for the specified table. Read-only ItemType
.
public int getUid()
The unique identifier of a table.
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.