Represents a table in a Word document.
Table is a block-level node and can be a child of classes derived from Story or InlineStory.
Table can contain one or more Row nodes.
A minimal valid table needs to have at least one Row.
Shows how to build a formatted 2x2 table.
Shows how to create a table.
Shows how to iterate through all tables in the document and print the contents of each cell.
Shows how to build a nested table without using a document builder.
#include <Aspose.Words.Cpp/Tables/Table.h>
Public Member Functions | |
Table (SharedPtr< DocumentBase > doc) | |
Initializes a new instance of the Table class. More... | |
bool | Accept (SharedPtr< DocumentVisitor > visitor) override |
Accepts a visitor. More... | |
void | AutoFit (AutoFitBehavior behavior) |
Resizes the table and cells according to the specified auto fit behavior. More... | |
void | ClearBorders () |
Removes all table and cell borders on this table. More... | |
void | ClearShading () |
Removes all shading on the table. More... | |
void | ConvertToHorizontallyMergedCells () |
Converts cells horizontally merged by width to cells merged by HorizontalMerge. More... | |
void | EnsureMinimum () |
If the table has no rows, creates and appends one Row. More... | |
double | get_AbsoluteHorizontalDistance () |
Gets or sets absolute horizontal floating table position specified by the table properties, in points. Default value is 0. More... | |
double | get_AbsoluteVerticalDistance () |
Gets or sets absolute vertical floating table position specified by the table properties, in points. Default value is 0. More... | |
TableAlignment | get_Alignment () |
Specifies how an inline table is aligned in the document. More... | |
bool | get_AllowAutoFit () |
Allows Microsoft Word and Aspose.Words to automatically resize cells in a table to fit their contents. More... | |
bool | get_AllowCellSpacing () |
Gets or sets the "Allow spacing between cells" option. More... | |
bool | get_AllowOverlap () |
Gets whether a floating table shall allow other floating objects in the document to overlap its extents when displayed. Default value is true . More... | |
bool | get_Bidi () |
Gets or sets whether this is a right-to-left table. More... | |
double | get_BottomPadding () |
Gets or sets the amount of space (in points) to add below the contents of cells. More... | |
double | get_CellSpacing () |
Gets or sets the amount of space (in points) between the cells. More... | |
String | get_Description () |
Gets or sets description of this table. It provides an alternative text representation of the information contained in the table. More... | |
double | get_DistanceBottom () |
Gets distance between table bottom and the surrounding text, in points. More... | |
double | get_DistanceLeft () |
Gets distance between table left and the surrounding text, in points. More... | |
double | get_DistanceRight () |
Gets distance between table right and the surrounding text, in points. More... | |
double | get_DistanceTop () |
Gets distance between table top and the surrounding text, in points. More... | |
SharedPtr< Row > | get_FirstRow () |
Returns the first Row node in the table. More... | |
RelativeHorizontalPosition | get_HorizontalAnchor () |
Gets the base object from which the horizontal positioning of floating table should be calculated. Default value is Column. More... | |
SharedPtr< Row > | get_LastRow () |
Returns the last Row node in the table. More... | |
double | get_LeftIndent () |
Gets or sets the value that represents the left indent of the table. More... | |
double | get_LeftPadding () |
Gets or sets the amount of space (in points) to add to the left of the contents of cells. More... | |
NodeType | get_NodeType () const override |
Returns NodeType.Table. More... | |
SharedPtr< PreferredWidth > | get_PreferredWidth () |
Gets or sets the table preferred width. More... | |
HorizontalAlignment | get_RelativeHorizontalAlignment () |
Gets or sets floating table relative horizontal alignment. More... | |
VerticalAlignment | get_RelativeVerticalAlignment () |
Gets or sets floating table relative vertical alignment. More... | |
double | get_RightPadding () |
Gets or sets the amount of space (in points) to add to the right of the contents of cells. More... | |
SharedPtr< RowCollection > | get_Rows () |
Provides typed access to the rows of the table. More... | |
SharedPtr< Style > | get_Style () |
Gets or sets the table style applied to this table. More... | |
StyleIdentifier | get_StyleIdentifier () |
Gets or sets the locale independent style identifier of the table style applied to this table. More... | |
String | get_StyleName () |
Gets or sets the name of the table style applied to this table. More... | |
TableStyleOptions | get_StyleOptions () |
Gets or sets bit flags that specify how a table style is applied to this table. More... | |
TextWrapping | get_TextWrapping () |
Gets or sets TextWrapping for table. More... | |
String | get_Title () |
Gets or sets title of this table. It provides an alternative text representation of the information contained in the table. More... | |
double | get_TopPadding () |
Gets or sets the amount of space (in points) to add above the contents of cells. More... | |
RelativeVerticalPosition | get_VerticalAnchor () |
Gets the base object from which the vertical positioning of floating table should be calculated. Default value is Margin. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_AbsoluteHorizontalDistance (double value) |
Setter for get_AbsoluteHorizontalDistance. More... | |
void | set_AbsoluteVerticalDistance (double value) |
Setter for get_AbsoluteVerticalDistance. More... | |
void | set_Alignment (TableAlignment value) |
Setter for get_Alignment. More... | |
void | set_AllowAutoFit (bool value) |
Setter for get_AllowAutoFit. More... | |
void | set_AllowCellSpacing (bool value) |
Setter for get_AllowCellSpacing. More... | |
void | set_Bidi (bool value) |
Setter for get_Bidi. More... | |
void | set_BottomPadding (double value) |
Setter for get_BottomPadding. More... | |
void | set_CellSpacing (double value) |
Setter for get_CellSpacing. More... | |
void | set_Description (String value) |
Setter for get_Description. More... | |
void | set_HorizontalAnchor (RelativeHorizontalPosition value) |
Setter for get_HorizontalAnchor. More... | |
void | set_LeftIndent (double value) |
Setter for get_LeftIndent. More... | |
void | set_LeftPadding (double value) |
Setter for get_LeftPadding. More... | |
void | set_PreferredWidth (SharedPtr< PreferredWidth > value) |
Setter for get_PreferredWidth. More... | |
void | set_RelativeHorizontalAlignment (HorizontalAlignment value) |
Setter for get_RelativeHorizontalAlignment. More... | |
void | set_RelativeVerticalAlignment (VerticalAlignment value) |
Setter for get_RelativeVerticalAlignment. More... | |
void | set_RightPadding (double value) |
Setter for get_RightPadding. More... | |
void | set_Style (SharedPtr< Style > value) |
Setter for get_Style. More... | |
void | set_StyleIdentifier (StyleIdentifier value) |
Setter for get_StyleIdentifier. More... | |
void | set_StyleName (String value) |
Setter for get_StyleName. More... | |
void | set_StyleOptions (TableStyleOptions value) |
Setter for get_StyleOptions. More... | |
void | set_TextWrapping (TextWrapping value) |
Setter for get_TextWrapping. More... | |
void | set_Title (String value) |
Setter for get_Title. More... | |
void | set_TopPadding (double value) |
Setter for get_TopPadding. More... | |
void | set_VerticalAnchor (RelativeVerticalPosition value) |
Setter for get_VerticalAnchor. More... | |
void | SetBorder (BorderType borderType, LineStyle lineStyle, double lineWidth, Color color, bool isOverrideCellBorders) |
Sets the specified table border to the specified line style, width and color. More... | |
void | SetBorders (LineStyle lineStyle, double lineWidth, Color color) |
Sets all table borders to the specified line style, width and color. More... | |
void | SetShading (TextureIndex texture, Color foregroundColor, Color backgroundColor) |
Sets shading to the specified values on all cells in the table. More... | |
![]() | |
SharedPtr< Node > | AppendChild (SharedPtr< Node > newChild) |
Adds the specified node to the end of the list of child nodes for this node. More... | |
SharedPtr< NodeCollection > | get_ChildNodes () |
Gets all immediate child nodes of this node. More... | |
SharedPtr< CompositeNode > | get_Container () override |
int32_t | get_Count () |
Gets the number of immediate children of this node. More... | |
SharedPtr< Node > | get_FirstChild () const |
Gets the first child of the node. More... | |
bool | get_HasChildNodes () |
Returns true if this node has any child nodes. More... | |
bool | get_IsComposite () override |
Returns true as this node can have child nodes. More... | |
SharedPtr< Node > | get_LastChild () const |
Gets the last child of the node. More... | |
SharedPtr< Node > | GetChild (NodeType nodeType, int32_t index, bool isDeep) |
Returns an Nth child node that matches the specified type. More... | |
SharedPtr< NodeCollection > | GetChildNodes (NodeType nodeType, bool isDeep) |
Returns a live collection of child nodes that match the specified type. More... | |
SharedPtr< Node > | GetCurrentNode () override |
SharedPtr< IEnumerator< SharedPtr< Node > > > | GetEnumerator () override |
Provides support for the for each style iteration over the child nodes of this node. More... | |
SharedPtr< Node > | GetNextMatchingNode (SharedPtr< Node > curNode) override |
String | GetText () override |
Gets the text of this node and of all its children. More... | |
int32_t | IndexOf (SharedPtr< Node > child) |
Returns the index of the specified child node in the child node array. More... | |
SharedPtr< Node > | InsertAfter (SharedPtr< Node > newChild, SharedPtr< Node > refChild) |
Inserts the specified node immediately after the specified reference node. More... | |
SharedPtr< Node > | InsertBefore (SharedPtr< Node > newChild, SharedPtr< Node > refChild) |
Inserts the specified node immediately before the specified reference node. More... | |
SharedPtr< Node > | PrependChild (SharedPtr< Node > newChild) |
Adds the specified node to the beginning of the list of child nodes for this node. More... | |
void | RemoveAllChildren () |
Removes all the child nodes of the current node. More... | |
SharedPtr< Node > | RemoveChild (SharedPtr< Node > oldChild) |
Removes the specified child node. More... | |
void | RemoveSmartTags () |
Removes all SmartTag descendant nodes of the current node. More... | |
SharedPtr< NodeList > | SelectNodes (String xpath) |
Selects a list of nodes matching the XPath expression. More... | |
SharedPtr< Node > | SelectSingleNode (String xpath) |
Selects the first Node that matches the XPath expression. More... | |
![]() | |
SharedPtr< Node > | Clone (bool isCloneChildren) |
Creates a duplicate of the node. More... | |
int32_t | get_CustomNodeId () const |
Specifies custom node identifier. More... | |
virtual SharedPtr< DocumentBase > | get_Document () const |
Gets the document to which this node belongs. More... | |
SharedPtr< Node > | get_NextSibling () |
Gets the node immediately following this node. More... | |
SharedPtr< CompositeNode > | get_ParentNode () |
Gets the immediate parent of this node. More... | |
SharedPtr< Node > | get_PreviousSibling () |
Gets the node immediately preceding this node. More... | |
SharedPtr< Range > | get_Range () |
Returns a Range object that represents the portion of a document that is contained in this node. More... | |
SharedPtr< CompositeNode > | GetAncestor (NodeType ancestorType) |
Gets the first ancestor of the specified NodeType. More... | |
template<typename T > | |
T | GetAncestorOf () |
SharedPtr< Node > | NextPreOrder (SharedPtr< Node > rootNode) |
Gets next node according to the pre-order tree traversal algorithm. More... | |
SharedPtr< Node > | PreviousPreOrder (SharedPtr< Node > rootNode) |
Gets the previous node according to the pre-order tree traversal algorithm. More... | |
void | Remove () |
Removes itself from the parent. More... | |
void | set_CustomNodeId (int32_t value) |
Setter for get_CustomNodeId. More... | |
String | ToString (SaveFormat saveFormat) |
Exports the content of the node into a string in the specified format. More... | |
String | ToString (SharedPtr< SaveOptions > saveOptions) |
Exports the content of the node into a string using the specified save options. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
![]() | |
static String | NodeTypeToString (NodeType nodeType) |
A utility method that converts a node type enum value into a user friendly string. More... | |
static const TypeInfo & | Type () |
Aspose::Words::Tables::Table::Table | ( | System::SharedPtr< Aspose::Words::DocumentBase > | doc | ) |
Initializes a new instance of the Table class.
When Table is created, it belongs to the specified document, but is not yet part of the document and ParentNode is null.
To append Table to the document use InsertAfter or InsertBefore on the story where you want the table inserted.
doc | The owner document. |
Shows how to create a table.
Shows how to build a nested table without using a document builder.
|
overridevirtual |
Accepts a visitor.
Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.
For more info see the Visitor design pattern.
visitor | The visitor that will visit the nodes. |
Shows how to use a DocumentVisitor implementation to remove all hidden content from a document.
Implements Aspose::Words::Node.
void Aspose::Words::Tables::Table::AutoFit | ( | Aspose::Words::Tables::AutoFitBehavior | behavior | ) |
Resizes the table and cells according to the specified auto fit behavior.
This method mimics the commands available in the Auto Fit menu for a table in Microsoft Word. The commands available are "Auto Fit to Contents", "Auto Fit to Window" and "Fixed Column Width". In Microsoft Word these commands set relevant table properties and then update the table layout and Aspose.Words does the same for you.
behavior | Specifies how to auto fit the table. |
Shows how to build a new table while applying a style.
void Aspose::Words::Tables::Table::ClearBorders | ( | ) |
Removes all table and cell borders on this table.
Shows how to apply an outline border to a table.
Shows how to remove all borders from a table.
void Aspose::Words::Tables::Table::ClearShading | ( | ) |
Removes all shading on the table.
Shows how to apply an outline border to a table.
void Aspose::Words::Tables::Table::ConvertToHorizontallyMergedCells | ( | ) |
Converts cells horizontally merged by width to cells merged by HorizontalMerge.
Shows how to convert cells horizontally merged by width to cells merged by CellFormat.HorizontalMerge.
void Aspose::Words::Tables::Table::EnsureMinimum | ( | ) |
If the table has no rows, creates and appends one Row.
Shows how to ensure that a table node contains the nodes we need to add content.
double Aspose::Words::Tables::Table::get_AbsoluteHorizontalDistance | ( | ) |
Gets or sets absolute horizontal floating table position specified by the table properties, in points. Default value is 0.
Shows how set the location of floating tables.
double Aspose::Words::Tables::Table::get_AbsoluteVerticalDistance | ( | ) |
Gets or sets absolute vertical floating table position specified by the table properties, in points. Default value is 0.
Shows how set the location of floating tables.
Aspose::Words::Tables::TableAlignment Aspose::Words::Tables::Table::get_Alignment | ( | ) |
Specifies how an inline table is aligned in the document.
The default value is Left.
Shows how to apply an outline border to a table.
bool Aspose::Words::Tables::Table::get_AllowAutoFit | ( | ) |
Allows Microsoft Word and Aspose.Words to automatically resize cells in a table to fit their contents.
The default value is true
.
Shows how to enable/disable automatic table cell resizing.
bool Aspose::Words::Tables::Table::get_AllowCellSpacing | ( | ) |
Gets or sets the "Allow spacing between cells" option.
Shows how to enable spacing between individual cells in a table.
bool Aspose::Words::Tables::Table::get_AllowOverlap | ( | ) |
Gets whether a floating table shall allow other floating objects in the document to overlap its extents when displayed. Default value is true
.
Shows how to work with floating tables properties.
bool Aspose::Words::Tables::Table::get_Bidi | ( | ) |
Gets or sets whether this is a right-to-left table.
When true
, the cells in this row are laid out right to left.
The default value is false
.
Shows how to create custom style settings for the table.
double Aspose::Words::Tables::Table::get_BottomPadding | ( | ) |
Gets or sets the amount of space (in points) to add below the contents of cells.
Shows how to configure content padding in a table.
double Aspose::Words::Tables::Table::get_CellSpacing | ( | ) |
Gets or sets the amount of space (in points) between the cells.
Shows how to enable spacing between individual cells in a table.
Shows how to create custom style settings for the table.
System::String Aspose::Words::Tables::Table::get_Description | ( | ) |
Gets or sets description of this table. It provides an alternative text representation of the information contained in the table.
The default value is an empty string.
This property is meaningful for ISO/IEC 29500 compliant DOCX documents (OoxmlCompliance). When saved to pre-ISO/IEC 29500 formats, the property is ignored.
Shows how to build a nested table without using a document builder.
double Aspose::Words::Tables::Table::get_DistanceBottom | ( | ) |
Gets distance between table bottom and the surrounding text, in points.
Shows the minimum distance operations between table boundaries and text.
double Aspose::Words::Tables::Table::get_DistanceLeft | ( | ) |
Gets distance between table left and the surrounding text, in points.
Shows the minimum distance operations between table boundaries and text.
double Aspose::Words::Tables::Table::get_DistanceRight | ( | ) |
Gets distance between table right and the surrounding text, in points.
Shows the minimum distance operations between table boundaries and text.
double Aspose::Words::Tables::Table::get_DistanceTop | ( | ) |
Gets distance between table top and the surrounding text, in points.
Shows the minimum distance operations between table boundaries and text.
System::SharedPtr<Aspose::Words::Tables::Row> Aspose::Words::Tables::Table::get_FirstRow | ( | ) |
Returns the first Row node in the table.
Shows how to remove the first and last rows of all tables in a document.
Shows how to combine the rows from two tables into one.
Aspose::Words::Drawing::RelativeHorizontalPosition Aspose::Words::Tables::Table::get_HorizontalAnchor | ( | ) |
Gets the base object from which the horizontal positioning of floating table should be calculated. Default value is Column.
Shows how to work with floating tables properties.
System::SharedPtr<Aspose::Words::Tables::Row> Aspose::Words::Tables::Table::get_LastRow | ( | ) |
Returns the last Row node in the table.
Shows how to remove the first and last rows of all tables in a document.
double Aspose::Words::Tables::Table::get_LeftIndent | ( | ) |
Gets or sets the value that represents the left indent of the table.
Shows how to create a formatted table using DocumentBuilder.
double Aspose::Words::Tables::Table::get_LeftPadding | ( | ) |
Gets or sets the amount of space (in points) to add to the left of the contents of cells.
Shows how to configure content padding in a table.
|
overridevirtual |
Returns NodeType.Table.
Shows how to traverse a composite node's tree of child nodes.
Shows how to find out if a tables are nested.
Implements Aspose::Words::Node.
System::SharedPtr<Aspose::Words::Tables::PreferredWidth> Aspose::Words::Tables::Table::get_PreferredWidth | ( | ) |
Gets or sets the table preferred width.
The default value is Auto.
Shows how to set a table to auto fit to 50% of the width of the page.
Aspose::Words::Drawing::HorizontalAlignment Aspose::Words::Tables::Table::get_RelativeHorizontalAlignment | ( | ) |
Gets or sets floating table relative horizontal alignment.
Shows how set the location of floating tables.
Aspose::Words::Drawing::VerticalAlignment Aspose::Words::Tables::Table::get_RelativeVerticalAlignment | ( | ) |
Gets or sets floating table relative vertical alignment.
Shows how set the location of floating tables.
double Aspose::Words::Tables::Table::get_RightPadding | ( | ) |
Gets or sets the amount of space (in points) to add to the right of the contents of cells.
Shows how to configure content padding in a table.
System::SharedPtr<Aspose::Words::Tables::RowCollection> Aspose::Words::Tables::Table::get_Rows | ( | ) |
Provides typed access to the rows of the table.
Shows how to iterate through all tables in the document and print the contents of each cell.
Shows how to combine the rows from two tables into one.
System::SharedPtr<Aspose::Words::Style> Aspose::Words::Tables::Table::get_Style | ( | ) |
Gets or sets the table style applied to this table.
Shows how to create custom style settings for the table.
Aspose::Words::StyleIdentifier Aspose::Words::Tables::Table::get_StyleIdentifier | ( | ) |
Gets or sets the locale independent style identifier of the table style applied to this table.
Shows how to build a new table while applying a style.
System::String Aspose::Words::Tables::Table::get_StyleName | ( | ) |
Gets or sets the name of the table style applied to this table.
Shows how to create custom style settings for the table.
Aspose::Words::Tables::TableStyleOptions Aspose::Words::Tables::Table::get_StyleOptions | ( | ) |
Gets or sets bit flags that specify how a table style is applied to this table.
Shows how to build a new table while applying a style.
Aspose::Words::Tables::TextWrapping Aspose::Words::Tables::Table::get_TextWrapping | ( | ) |
Gets or sets TextWrapping for table.
Shows how to work with table text wrapping.
System::String Aspose::Words::Tables::Table::get_Title | ( | ) |
Gets or sets title of this table. It provides an alternative text representation of the information contained in the table.
The default value is an empty string.
This property is meaningful for ISO/IEC 29500 compliant DOCX documents (OoxmlCompliance). When saved to pre-ISO/IEC 29500 formats, the property is ignored.
Shows how to build a nested table without using a document builder.
double Aspose::Words::Tables::Table::get_TopPadding | ( | ) |
Gets or sets the amount of space (in points) to add above the contents of cells.
Shows how to configure content padding in a table.
Aspose::Words::Drawing::RelativeVerticalPosition Aspose::Words::Tables::Table::get_VerticalAnchor | ( | ) |
Gets the base object from which the vertical positioning of floating table should be calculated. Default value is Margin.
Shows how to work with floating tables properties.
|
overridevirtual |
Reimplemented from Aspose::Words::CompositeNode.
|
overridevirtual |
Reimplemented from Aspose::Words::CompositeNode.
void Aspose::Words::Tables::Table::set_AbsoluteHorizontalDistance | ( | double | value | ) |
void Aspose::Words::Tables::Table::set_AbsoluteVerticalDistance | ( | double | value | ) |
void Aspose::Words::Tables::Table::set_Alignment | ( | Aspose::Words::Tables::TableAlignment | value | ) |
Setter for Aspose::Words::Tables::Table::get_Alignment.
void Aspose::Words::Tables::Table::set_AllowAutoFit | ( | bool | value | ) |
Setter for Aspose::Words::Tables::Table::get_AllowAutoFit.
void Aspose::Words::Tables::Table::set_AllowCellSpacing | ( | bool | value | ) |
void Aspose::Words::Tables::Table::set_Bidi | ( | bool | value | ) |
Setter for Aspose::Words::Tables::Table::get_Bidi.
void Aspose::Words::Tables::Table::set_BottomPadding | ( | double | value | ) |
Setter for Aspose::Words::Tables::Table::get_BottomPadding.
void Aspose::Words::Tables::Table::set_CellSpacing | ( | double | value | ) |
Setter for Aspose::Words::Tables::Table::get_CellSpacing.
void Aspose::Words::Tables::Table::set_Description | ( | System::String | value | ) |
Setter for Aspose::Words::Tables::Table::get_Description.
void Aspose::Words::Tables::Table::set_HorizontalAnchor | ( | Aspose::Words::Drawing::RelativeHorizontalPosition | value | ) |
void Aspose::Words::Tables::Table::set_LeftIndent | ( | double | value | ) |
Setter for Aspose::Words::Tables::Table::get_LeftIndent.
void Aspose::Words::Tables::Table::set_LeftPadding | ( | double | value | ) |
Setter for Aspose::Words::Tables::Table::get_LeftPadding.
void Aspose::Words::Tables::Table::set_PreferredWidth | ( | System::SharedPtr< Aspose::Words::Tables::PreferredWidth > | value | ) |
Setter for Aspose::Words::Tables::Table::get_PreferredWidth.
void Aspose::Words::Tables::Table::set_RelativeHorizontalAlignment | ( | Aspose::Words::Drawing::HorizontalAlignment | value | ) |
void Aspose::Words::Tables::Table::set_RelativeVerticalAlignment | ( | Aspose::Words::Drawing::VerticalAlignment | value | ) |
void Aspose::Words::Tables::Table::set_RightPadding | ( | double | value | ) |
Setter for Aspose::Words::Tables::Table::get_RightPadding.
void Aspose::Words::Tables::Table::set_Style | ( | System::SharedPtr< Aspose::Words::Style > | value | ) |
Setter for Aspose::Words::Tables::Table::get_Style.
void Aspose::Words::Tables::Table::set_StyleIdentifier | ( | Aspose::Words::StyleIdentifier | value | ) |
void Aspose::Words::Tables::Table::set_StyleName | ( | System::String | value | ) |
Setter for Aspose::Words::Tables::Table::get_StyleName.
void Aspose::Words::Tables::Table::set_StyleOptions | ( | Aspose::Words::Tables::TableStyleOptions | value | ) |
Setter for Aspose::Words::Tables::Table::get_StyleOptions.
void Aspose::Words::Tables::Table::set_TextWrapping | ( | Aspose::Words::Tables::TextWrapping | value | ) |
Setter for Aspose::Words::Tables::Table::get_TextWrapping.
void Aspose::Words::Tables::Table::set_Title | ( | System::String | value | ) |
Setter for Aspose::Words::Tables::Table::get_Title.
void Aspose::Words::Tables::Table::set_TopPadding | ( | double | value | ) |
Setter for Aspose::Words::Tables::Table::get_TopPadding.
void Aspose::Words::Tables::Table::set_VerticalAnchor | ( | Aspose::Words::Drawing::RelativeVerticalPosition | value | ) |
Setter for Aspose::Words::Tables::Table::get_VerticalAnchor.
void Aspose::Words::Tables::Table::SetBorder | ( | Aspose::Words::BorderType | borderType, |
Aspose::Words::LineStyle | lineStyle, | ||
double | lineWidth, | ||
System::Drawing::Color | color, | ||
bool | isOverrideCellBorders | ||
) |
Sets the specified table border to the specified line style, width and color.
borderType | The table border to change. |
lineStyle | The line style to apply. |
lineWidth | The line width to set (in points). |
color | The color to use for the border. |
isOverrideCellBorders | When true , causes all existing explicit cell borders to be removed. |
Shows how to apply an outline border to a table.
void Aspose::Words::Tables::Table::SetBorders | ( | Aspose::Words::LineStyle | lineStyle, |
double | lineWidth, | ||
System::Drawing::Color | color | ||
) |
Sets all table borders to the specified line style, width and color.
lineStyle | The line style to apply. |
lineWidth | The line width to set (in points). |
color | The color to use for the border. |
Shows how to apply border and shading color while building a table.
Shows how to format of all of a table's borders at once.
void Aspose::Words::Tables::Table::SetShading | ( | Aspose::Words::TextureIndex | texture, |
System::Drawing::Color | foregroundColor, | ||
System::Drawing::Color | backgroundColor | ||
) |
Sets shading to the specified values on all cells in the table.
texture | The texture to apply. |
foregroundColor | The color of the texture. |
backgroundColor | The color of the background fill. |
Shows how to apply an outline border to a table.
|
static |