Provides typed access to a collection of Row nodes.
Shows how to iterate through all tables in the document and print the contents of each cell.
#include <Aspose.Words.Cpp/Tables/RowCollection.h>
Public Member Functions | |
virtual const TypeInfo & | GetType () const override |
SharedPtr< Row > | idx_get (int32_t index) |
Retrieves a Row at the given index. More... | |
virtual bool | Is (const TypeInfo &target) const override |
ArrayPtr< SharedPtr< Row > > | ToArray () |
Copies all rows from the collection to a new array of rows. More... | |
![]() | |
void | Add (SharedPtr< Node > node) |
Adds a node to the end of the collection. More... | |
void | Clear () |
Removes all nodes from this collection and from the document. More... | |
bool | Contains (SharedPtr< Node > node) |
Determines whether a node is in the collection. More... | |
SharedPtr< CompositeNode > | get_Container () override |
int32_t | get_Count () |
Gets the number of nodes in the collection. More... | |
SharedPtr< Node > | GetCurrentNode () override |
SharedPtr< IEnumerator< SharedPtr< Node > > > | GetEnumerator () override |
Provides a simple "foreach" style iteration over the collection of nodes. More... | |
SharedPtr< Node > | GetNextMatchingNode (SharedPtr< Node > curNode) override |
SharedPtr< Node > | idx_get (int32_t index) |
Retrieves a node at the given index. More... | |
int32_t | IndexOf (SharedPtr< Node > node) |
Returns the zero-based index of the specified node. More... | |
void | Insert (int32_t index, SharedPtr< Node > node) |
Inserts a node into the collection at the specified index. More... | |
void | Remove (SharedPtr< Node > node) |
Removes the node from the collection and from the document. More... | |
void | RemoveAt (int32_t index) |
Removes the node at the specified index from the collection and from the document. More... | |
ArrayPtr< SharedPtr< Node > > | ToArray () |
Copies all nodes from the collection to a new array of nodes. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
|
overridevirtual |
Reimplemented from Aspose::Words::NodeCollection.
System::SharedPtr<Aspose::Words::Tables::Row> Aspose::Words::Tables::RowCollection::idx_get | ( | int32_t | index | ) |
Retrieves a Row at the given index.
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
index | An index into the collection. |
Shows how to iterate through all tables in the document and print the contents of each cell.
|
overridevirtual |
Reimplemented from Aspose::Words::NodeCollection.
System::ArrayPtr<System::SharedPtr<Aspose::Words::Tables::Row> > Aspose::Words::Tables::RowCollection::ToArray | ( | ) |
Copies all rows from the collection to a new array of rows.
Shows how to iterate through all tables in the document and print the contents of each cell.
|
static |