Aspose::Words::Tables::Table Class Reference

Represents a table in a Word document. More...

#include "Aspose.Words.Cpp/Model/Tables/Table.h"

Inherits Aspose::Words::CompositeNode.

Public Member Functions

virtual Aspose::Words::NodeType get_NodeType () const
 Returns NodeType.Table. More...
 
System::SharedPtr< Aspose::Words::Tables::Rowget_FirstRow ()
 Returns the first Row node in the table. More...
 
System::SharedPtr< Aspose::Words::Tables::Rowget_LastRow ()
 Returns the last Row node in the table. More...
 
System::SharedPtr< Aspose::Words::Tables::RowCollectionget_Rows ()
 Provides typed access to the rows of the table. More...
 
Aspose::Words::Tables::TableAlignment get_Alignment ()
 Specifies how an inline table is aligned in the document. More...
 
void set_Alignment (Aspose::Words::Tables::TableAlignment value)
 Setter for Aspose::Words::Tables::Table::get_Alignment. More...
 
bool get_AllowAutoFit ()
 Allows Microsoft Word and Aspose.Words to automatically resize cells in a table to fit their contents. More...
 
void set_AllowAutoFit (bool value)
 Setter for Aspose::Words::Tables::Table::get_AllowAutoFit. More...
 
System::SharedPtr< Aspose::Words::Tables::PreferredWidthget_PreferredWidth ()
 Gets or sets the table preferred width. More...
 
void set_PreferredWidth (System::SharedPtr< Aspose::Words::Tables::PreferredWidth > value)
 Setter for Aspose::Words::Tables::Table::get_PreferredWidth. More...
 
bool get_Bidi ()
 Gets or sets whether this is a right-to-left table. More...
 
void set_Bidi (bool value)
 Setter for Aspose::Words::Tables::Table::get_Bidi. More...
 
double get_LeftPadding ()
 Gets or sets the amount of space (in points) to add to the left of the contents of cells. More...
 
void set_LeftPadding (double value)
 Setter for Aspose::Words::Tables::Table::get_LeftPadding. More...
 
double get_RightPadding ()
 Gets or sets the amount of space (in points) to add to the right of the contents of cells. More...
 
void set_RightPadding (double value)
 Setter for Aspose::Words::Tables::Table::get_RightPadding. More...
 
double get_TopPadding ()
 Gets or sets the amount of space (in points) to add above the contents of cells. More...
 
void set_TopPadding (double value)
 Setter for Aspose::Words::Tables::Table::get_TopPadding. More...
 
double get_BottomPadding ()
 Gets or sets the amount of space (in points) to add below the contents of cells. More...
 
void set_BottomPadding (double value)
 Setter for Aspose::Words::Tables::Table::get_BottomPadding. More...
 
double get_CellSpacing ()
 Gets or sets the amount of space (in points) between the cells. More...
 
void set_CellSpacing (double value)
 Setter for Aspose::Words::Tables::Table::get_CellSpacing. More...
 
bool get_AllowCellSpacing ()
 Gets or sets the "Allow spacing between cells" option. More...
 
void set_AllowCellSpacing (bool value)
 Setter for Aspose::Words::Tables::Table::get_AllowCellSpacing. More...
 
double get_LeftIndent ()
 Gets or sets the value that represents the left indent of the table. More...
 
void set_LeftIndent (double value)
 Setter for Aspose::Words::Tables::Table::get_LeftIndent. More...
 
Aspose::Words::Tables::TableStyleOptions get_StyleOptions ()
 Gets or sets bit flags that specify how a table style is applied to this table. More...
 
void set_StyleOptions (Aspose::Words::Tables::TableStyleOptions value)
 Setter for Aspose::Words::Tables::Table::get_StyleOptions. More...
 
System::SharedPtr< Aspose::Words::Styleget_Style ()
 Gets or sets the table style applied to this table. More...
 
void set_Style (System::SharedPtr< Aspose::Words::Style > value)
 Setter for Aspose::Words::Tables::Table::get_Style. More...
 
System::String get_StyleName ()
 Gets or sets the name of the table style applied to this table. More...
 
void set_StyleName (System::String value)
 Setter for Aspose::Words::Tables::Table::get_StyleName. More...
 
Aspose::Words::StyleIdentifier get_StyleIdentifier ()
 Gets or sets the locale independent style identifier of the table style applied to this table. More...
 
void set_StyleIdentifier (Aspose::Words::StyleIdentifier value)
 Setter for Aspose::Words::Tables::Table::get_StyleIdentifier. More...
 
Aspose::Words::Tables::TextWrapping get_TextWrapping ()
 Gets or sets Aspose::Words::Tables::Table::get_TextWrapping for table. More...
 
void set_TextWrapping (Aspose::Words::Tables::TextWrapping value)
 Setter for Aspose::Words::Tables::Table::get_TextWrapping. More...
 
System::String get_Title ()
 Gets or sets title of this table. It provides an alternative text representation of the information contained in the table. More...
 
void set_Title (System::String value)
 Setter for Aspose::Words::Tables::Table::get_Title. More...
 
System::String get_Description ()
 Gets or sets description of this table. It provides an alternative text representation of the information contained in the table. More...
 
void set_Description (System::String value)
 Setter for Aspose::Words::Tables::Table::get_Description. 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...
 
double get_DistanceBottom ()
 Gets distance between table bottom and the surrounding text, in points. More...
 
Aspose::Words::Drawing::HorizontalAlignment get_RelativeHorizontalAlignment ()
 Gets floating table relative horizontal alignment. More...
 
Aspose::Words::Drawing::VerticalAlignment get_RelativeVerticalAlignment ()
 Gets floating table relative vertical alignment. More...
 
Aspose::Words::Drawing::RelativeHorizontalPosition get_HorizontalAnchor ()
 Gets the base object from which the horizontal positioning of floating table should be calculated. Default value is Aspose::Words::Drawing::RelativeHorizontalPosition::Column. More...
 
Aspose::Words::Drawing::RelativeVerticalPosition get_VerticalAnchor ()
 Gets the base object from which the vertical positioning of floating table should be calculated. Default value is Aspose::Words::Drawing::RelativeVerticalPosition::Margin. More...
 
double get_AbsoluteHorizontalDistance ()
 Gets absolute horizontal floating table position specified by the table properties, in points. Default value is 0. More...
 
double get_AbsoluteVerticalDistance ()
 Gets absolute vertical floating table position specified by the table properties, in points. Default value is 0. 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...
 
 Table (System::SharedPtr< Aspose::Words::DocumentBase > doc)
 Initializes a new instance of the Table class. More...
 
void ConvertToHorizontallyMergedCells ()
 Converts cells horizontally merged by width to cells merged by Aspose::Words::Tables::CellFormat::get_HorizontalMerge. More...
 
virtual bool Accept (System::SharedPtr< Aspose::Words::DocumentVisitor > visitor)
 Accepts a visitor. More...
 
void EnsureMinimum ()
 If the table has no rows, creates and appends one Row. More...
 
void SetBorders (Aspose::Words::LineStyle lineStyle, double lineWidth, System::Drawing::Color color)
 Sets all table borders to the specified line style, width and color. More...
 
void 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. More...
 
void ClearBorders ()
 Removes all table and cell borders on this table. More...
 
void 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. More...
 
void ClearShading ()
 Removes all shading on the table. More...
 
void AutoFit (Aspose::Words::Tables::AutoFitBehavior behavior)
 Resizes the table and cells according to the specified auto fit behavior. More...
 
- Public Member Functions inherited from Aspose::Words::CompositeNode
virtual bool get_IsComposite ()
 Returns true as this node can have child nodes. More...
 
bool get_HasChildNodes ()
 Returns true if this node has any child nodes. More...
 
System::SharedPtr< Aspose::Words::NodeCollectionget_ChildNodes ()
 Gets all immediate child nodes of this node. More...
 
System::SharedPtr< Aspose::Words::Nodeget_FirstChild () const
 Gets the first child of the node. More...
 
System::SharedPtr< Aspose::Words::Nodeget_LastChild () const
 Gets the last child of the node. More...
 
int32_t get_Count ()
 Gets the number of immediate children of this node. More...
 
System::SharedPtr< Aspose::Words::CompositeNodeget_Container ()
 
virtual ~CompositeNode ()
 
virtual System::String GetText ()
 Gets the text of this node and of all its children. More...
 
System::SharedPtr< Aspose::Words::NodeCollectionGetChildNodes (Aspose::Words::NodeType nodeType, bool isDeep)
 Returns a live collection of child nodes that match the specified type. More...
 
System::SharedPtr< Aspose::Words::NodeGetChild (Aspose::Words::NodeType nodeType, int32_t index, bool isDeep)
 Returns an Nth child node that matches the specified type. More...
 
System::SharedPtr< Aspose::Words::NodeListSelectNodes (System::String xpath)
 Selects a list of nodes matching the XPath expression. More...
 
System::SharedPtr< Aspose::Words::NodeSelectSingleNode (System::String xpath)
 Selects the first Node that matches the XPath expression. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Aspose::Words::Node > > > GetEnumerator ()
 Provides support for the for each style iteration over the child nodes of this node. More...
 
System::SharedPtr< Aspose::Words::NodeAppendChild (System::SharedPtr< Aspose::Words::Node > newChild)
 Adds the specified node to the end of the list of child nodes for this node. More...
 
System::SharedPtr< Aspose::Words::NodePrependChild (System::SharedPtr< Aspose::Words::Node > newChild)
 Adds the specified node to the beginning of the list of child nodes for this node. More...
 
System::SharedPtr< Aspose::Words::NodeInsertAfter (System::SharedPtr< Aspose::Words::Node > newChild, System::SharedPtr< Aspose::Words::Node > refChild)
 Inserts the specified node immediately after the specified reference node. More...
 
System::SharedPtr< Aspose::Words::NodeInsertBefore (System::SharedPtr< Aspose::Words::Node > newChild, System::SharedPtr< Aspose::Words::Node > refChild)
 Inserts the specified node immediately before the specified reference node. More...
 
System::SharedPtr< Aspose::Words::NodeRemoveChild (System::SharedPtr< Aspose::Words::Node > oldChild)
 Removes the specified child node. More...
 
void RemoveAllChildren ()
 Removes all the child nodes of the current node. More...
 
void RemoveSmartTags ()
 Removes all Aspose::Words::Markup::SmartTag descendant nodes of the current node. More...
 
int32_t IndexOf (System::SharedPtr< Aspose::Words::Node > child)
 Returns the index of the specified child node in the child node array. More...
 
System::SharedPtr< Aspose::Words::NodeGetNextMatchingNode (System::SharedPtr< Aspose::Words::Node > &curNode)
 
- Public Member Functions inherited from Aspose::Words::Node
System::SharedPtr< Aspose::Words::CompositeNodeget_ParentNode ()
 Gets the immediate parent of this node. More...
 
System::SharedPtr< Aspose::Words::DocumentBaseget_Document ()
 Gets the document to which this node belongs. More...
 
System::SharedPtr< Aspose::Words::Nodeget_PreviousSibling ()
 Gets the node immediately preceding this node. More...
 
System::SharedPtr< Aspose::Words::Nodeget_NextSibling ()
 Gets the node immediately following this node. More...
 
System::SharedPtr< Aspose::Words::Rangeget_Range ()
 Returns a Range object that represents the portion of a document that is contained in this node. More...
 
System::SharedPtr< Aspose::Words::NodeClone (bool isCloneChildren)
 
template<typename T >
GetAncestorOf ()
 
System::SharedPtr< Aspose::Words::CompositeNodeGetAncestor (Aspose::Words::NodeType ancestorType)
 Gets the first ancestor of the specified Aspose::Words::NodeType. More...
 
void Remove ()
 Removes itself from the parent. More...
 
System::SharedPtr< Aspose::Words::NodeNextPreOrder (System::SharedPtr< Aspose::Words::Node > rootNode)
 Gets next node according to the pre-order tree traversal algorithm. More...
 
System::SharedPtr< Aspose::Words::NodePreviousPreOrder (System::SharedPtr< Aspose::Words::Node > rootNode)
 Gets the previous node according to the pre-order tree traversal algorithm. More...
 
System::String ToString (Aspose::Words::SaveFormat saveFormat)
 Exports the content of the node into a string in the specified format. More...
 
System::String ToString (System::SharedPtr< Aspose::Words::Saving::SaveOptions > saveOptions)
 Exports the content of the node into a string using the specified save options. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Words::Node > >
typedef IEnumerator< System::SharedPtr< Aspose::Words::Node > > IEnumeratorType
 Enumerator type. More...
 
- Static Public Member Functions inherited from Aspose::Words::Node
static System::String NodeTypeToString (Aspose::Words::NodeType nodeType)
 A utility method that converts a node type enum value into a user friendly string. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Table()

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.

Parameters
docThe owner document.

Member Function Documentation

◆ Accept()

virtual bool Aspose::Words::Tables::Table::Accept ( System::SharedPtr< Aspose::Words::DocumentVisitor visitor)
virtual

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.

Parameters
visitorThe visitor that will visit the nodes.
Returns
True if all nodes were visited; false if DocumentVisitor stopped the operation before visiting all nodes.

Calls DocumentVisitor.VisitTableStart, then calls Accept for all child nodes of the section and calls DocumentVisitor.VisitTableEnd at the end.

Implements Aspose::Words::Node.

◆ AutoFit()

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.

Parameters
behaviorSpecifies how to auto fit the table.

◆ ClearBorders()

void Aspose::Words::Tables::Table::ClearBorders ( )

Removes all table and cell borders on this table.

◆ ClearShading()

void Aspose::Words::Tables::Table::ClearShading ( )

Removes all shading on the table.

◆ ConvertToHorizontallyMergedCells()

void Aspose::Words::Tables::Table::ConvertToHorizontallyMergedCells ( )

Converts cells horizontally merged by width to cells merged by Aspose::Words::Tables::CellFormat::get_HorizontalMerge.

<remark>

Table cells can be horizontally merged either using merge flags Aspose::Words::Tables::CellFormat::get_HorizontalMerge or using cell width Aspose::Words::Tables::CellFormat::get_Width.

When table cell is merged by width property Aspose::Words::Tables::CellFormat::get_HorizontalMerge is meaningless but sometimes having merge flags is more convenient way.

Use this method to transforms table cells horizontally merged by width to cells merged by merge flags.

</remark>

◆ EnsureMinimum()

void Aspose::Words::Tables::Table::EnsureMinimum ( )

If the table has no rows, creates and appends one Row.

◆ get_AbsoluteHorizontalDistance()

double Aspose::Words::Tables::Table::get_AbsoluteHorizontalDistance ( )

Gets absolute horizontal floating table position specified by the table properties, in points. Default value is 0.

◆ get_AbsoluteVerticalDistance()

double Aspose::Words::Tables::Table::get_AbsoluteVerticalDistance ( )

Gets absolute vertical floating table position specified by the table properties, in points. Default value is 0.

◆ get_Alignment()

Aspose::Words::Tables::TableAlignment Aspose::Words::Tables::Table::get_Alignment ( )

Specifies how an inline table is aligned in the document.

The default value is Aspose::Words::Tables::TableAlignment::Left.

◆ get_AllowAutoFit()

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.

See also
Aspose::Words::Tables::Table::AutoFit(Aspose::Words::Tables::AutoFitBehavior)

◆ get_AllowCellSpacing()

bool Aspose::Words::Tables::Table::get_AllowCellSpacing ( )

Gets or sets the "Allow spacing between cells" option.

◆ get_AllowOverlap()

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.

◆ get_Bidi()

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.

◆ get_BottomPadding()

double Aspose::Words::Tables::Table::get_BottomPadding ( )

Gets or sets the amount of space (in points) to add below the contents of cells.

◆ get_CellSpacing()

double Aspose::Words::Tables::Table::get_CellSpacing ( )

Gets or sets the amount of space (in points) between the cells.

◆ get_Description()

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 (Aspose::Words::Saving::OoxmlCompliance). When saved to pre-ISO/IEC 29500 formats, the property is ignored.

◆ get_DistanceBottom()

double Aspose::Words::Tables::Table::get_DistanceBottom ( )

Gets distance between table bottom and the surrounding text, in points.

◆ get_DistanceLeft()

double Aspose::Words::Tables::Table::get_DistanceLeft ( )

Gets distance between table left and the surrounding text, in points.

◆ get_DistanceRight()

double Aspose::Words::Tables::Table::get_DistanceRight ( )

Gets distance between table right and the surrounding text, in points.

◆ get_DistanceTop()

double Aspose::Words::Tables::Table::get_DistanceTop ( )

Gets distance between table top and the surrounding text, in points.

◆ get_FirstRow()

System::SharedPtr<Aspose::Words::Tables::Row> Aspose::Words::Tables::Table::get_FirstRow ( )

Returns the first Row node in the table.

◆ get_HorizontalAnchor()

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 Aspose::Words::Drawing::RelativeHorizontalPosition::Column.

◆ get_LastRow()

System::SharedPtr<Aspose::Words::Tables::Row> Aspose::Words::Tables::Table::get_LastRow ( )

Returns the last Row node in the table.

◆ get_LeftIndent()

double Aspose::Words::Tables::Table::get_LeftIndent ( )

Gets or sets the value that represents the left indent of the table.

◆ get_LeftPadding()

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.

◆ get_NodeType()

virtual Aspose::Words::NodeType Aspose::Words::Tables::Table::get_NodeType ( ) const
virtual

Returns NodeType.Table.

Implements Aspose::Words::Node.

◆ get_PreferredWidth()

System::SharedPtr<Aspose::Words::Tables::PreferredWidth> Aspose::Words::Tables::Table::get_PreferredWidth ( )

Gets or sets the table preferred width.

The default value is Aspose::Words::Tables::PreferredWidth::Auto.

◆ get_RelativeHorizontalAlignment()

Aspose::Words::Drawing::HorizontalAlignment Aspose::Words::Tables::Table::get_RelativeHorizontalAlignment ( )

Gets floating table relative horizontal alignment.

◆ get_RelativeVerticalAlignment()

Aspose::Words::Drawing::VerticalAlignment Aspose::Words::Tables::Table::get_RelativeVerticalAlignment ( )

Gets floating table relative vertical alignment.

◆ get_RightPadding()

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.

◆ get_Rows()

System::SharedPtr<Aspose::Words::Tables::RowCollection> Aspose::Words::Tables::Table::get_Rows ( )

Provides typed access to the rows of the table.

◆ get_Style()

System::SharedPtr<Aspose::Words::Style> Aspose::Words::Tables::Table::get_Style ( )

Gets or sets the table style applied to this table.

◆ get_StyleIdentifier()

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.

◆ get_StyleName()

System::String Aspose::Words::Tables::Table::get_StyleName ( )

Gets or sets the name of the table style applied to this table.

◆ get_StyleOptions()

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.

◆ get_TextWrapping()

Aspose::Words::Tables::TextWrapping Aspose::Words::Tables::Table::get_TextWrapping ( )

◆ get_Title()

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 (Aspose::Words::Saving::OoxmlCompliance). When saved to pre-ISO/IEC 29500 formats, the property is ignored.

◆ get_TopPadding()

double Aspose::Words::Tables::Table::get_TopPadding ( )

Gets or sets the amount of space (in points) to add above the contents of cells.

◆ get_VerticalAnchor()

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 Aspose::Words::Drawing::RelativeVerticalPosition::Margin.

◆ set_Alignment()

void Aspose::Words::Tables::Table::set_Alignment ( Aspose::Words::Tables::TableAlignment  value)

◆ set_AllowAutoFit()

void Aspose::Words::Tables::Table::set_AllowAutoFit ( bool  value)

◆ set_AllowCellSpacing()

void Aspose::Words::Tables::Table::set_AllowCellSpacing ( bool  value)

◆ set_Bidi()

void Aspose::Words::Tables::Table::set_Bidi ( bool  value)

◆ set_BottomPadding()

void Aspose::Words::Tables::Table::set_BottomPadding ( double  value)

◆ set_CellSpacing()

void Aspose::Words::Tables::Table::set_CellSpacing ( double  value)

◆ set_Description()

void Aspose::Words::Tables::Table::set_Description ( System::String  value)

◆ set_LeftIndent()

void Aspose::Words::Tables::Table::set_LeftIndent ( double  value)

◆ set_LeftPadding()

void Aspose::Words::Tables::Table::set_LeftPadding ( double  value)

◆ set_PreferredWidth()

void Aspose::Words::Tables::Table::set_PreferredWidth ( System::SharedPtr< Aspose::Words::Tables::PreferredWidth value)

◆ set_RightPadding()

void Aspose::Words::Tables::Table::set_RightPadding ( double  value)

◆ set_Style()

void Aspose::Words::Tables::Table::set_Style ( System::SharedPtr< Aspose::Words::Style value)

◆ set_StyleIdentifier()

void Aspose::Words::Tables::Table::set_StyleIdentifier ( Aspose::Words::StyleIdentifier  value)

◆ set_StyleName()

void Aspose::Words::Tables::Table::set_StyleName ( System::String  value)

◆ set_StyleOptions()

void Aspose::Words::Tables::Table::set_StyleOptions ( Aspose::Words::Tables::TableStyleOptions  value)

◆ set_TextWrapping()

void Aspose::Words::Tables::Table::set_TextWrapping ( Aspose::Words::Tables::TextWrapping  value)

◆ set_Title()

void Aspose::Words::Tables::Table::set_Title ( System::String  value)

◆ set_TopPadding()

void Aspose::Words::Tables::Table::set_TopPadding ( double  value)

◆ SetBorder()

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.

Parameters
borderTypeThe table border to change.
lineStyleThe line style to apply.
lineWidthThe line width to set (in points).
colorThe color to use for the border.
isOverrideCellBordersWhen true, causes all existing explicit cell borders to be removed.

◆ SetBorders()

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.

Parameters
lineStyleThe line style to apply.
lineWidthThe line width to set (in points).
colorThe color to use for the border.

◆ SetShading()

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.

Parameters
textureThe texture to apply.
foregroundColorThe color of the texture.
backgroundColorThe color of the background fill.