Class TableRowAdvCollection
Represents a collection of TableRowAdv elements.
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class TableRowAdvCollection : NodeCollection
Constructors
TableRowAdvCollection(Node)
Initializes a new instance of the TableRowAdvCollection class for the specified Node.
Declaration
public TableRowAdvCollection(Node owner)
Parameters
Type | Name | Description |
---|---|---|
Node | owner | The owner of the TableRowAdvCollection. The value can be null or an instance of TableAdv. |
TableRowAdvCollection(Node, IEnumerable<TableRowAdv>)
Initializes a new instance of the TableRowAdvCollection class that contains table rows
copied from the specified collection
for the specified Node.
Declaration
public TableRowAdvCollection(Node owner, IEnumerable<TableRowAdv> collection)
Parameters
Type | Name | Description |
---|---|---|
Node | owner | The owner of the TableRowAdvCollection. The value can be null or an instance of TableAdv. |
System.Collections.Generic.IEnumerable<TableRowAdv> | collection | The collection from which the table rows are copied. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The collection parameter cannot be null. |
Properties
Item[Int32]
Gets the TableRowAdv at the specified index
in the TableRowAdvCollection.
Declaration
public TableRowAdv this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the TableRowAdv instance to get. |
Property Value
Type | Description |
---|---|
TableRowAdv | The TableRowAdv instance at the specified |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Index was out of range. Must be non-negative and less than the size of the collection. |
Methods
Add(Node)
Adds the specified TableRowAdv to the end of the TableRowAdvCollection.
Declaration
public void Add(Node tableRowAdv)
Parameters
Type | Name | Description |
---|---|---|
Node | tableRowAdv | The TableRowAdv instance to be added to the end of the TableRowAdvCollection. |
First()
Returns the first TableRowAdv instance from the TableRowAdvCollection.
Declaration
public TableRowAdv First()
Returns
Type | Description |
---|---|
TableRowAdv | The first TableRowAdv instance in the TableRowAdvCollection. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The source sequence is empty. |
First(Func<Node, Boolean>)
Returns the first TableRowAdv instance from the TableRowAdvCollection that satisfies a specified condition.
Declaration
public TableRowAdv First(Func<Node, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<Node, System.Boolean> | predicate | A function to test each element for a condition. |
Returns
Type | Description |
---|---|
TableRowAdv | The first TableRowAdv instance in the TableRowAdvCollection that passes the test in
the specified |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | predicate is null. |
System.InvalidOperationException | No element satisfies the condition in predicate.-or-The source sequence is empty. |
Insert(Int32, Node)
Inserts the specified TableRowAdv into the TableRowAdvCollection at the specified index
.
Declaration
public void Insert(int index, Node tableRowAdv)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the TableRowAdv should be inserted. |
Node | tableRowAdv | The TableRowAdv instance to insert. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Index was out of range. Must be non-negative and less than the size of the collection. |
Last()
Returns the last TableRowAdv instance from the TableRowAdvCollection.
Declaration
public TableRowAdv Last()
Returns
Type | Description |
---|---|
TableRowAdv | The last TableRowAdv instance in the TableRowAdvCollection. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The source sequence is empty. |
Last(Func<Node, Boolean>)
Returns the last TableRowAdv instance from the TableRowAdvCollection that satisfies a specified condition.
Declaration
public TableRowAdv Last(Func<Node, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<Node, System.Boolean> | predicate | A function to test each element for a condition. |
Returns
Type | Description |
---|---|
TableRowAdv | The last TableRowAdv instance in the TableRowAdvCollection that passes the test in
the specified |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | predicate is null. |
System.InvalidOperationException | No element satisfies the condition in predicate.-or-The source sequence is empty. |
Remove(Node)
Removes the first occurrence of the specified TableRowAdv from the TableRowAdvCollection.
Declaration
public bool Remove(Node tableRowAdv)
Parameters
Type | Name | Description |
---|---|---|
Node | tableRowAdv | The TableRowAdv instance to remove from the TableRowAdvCollection. |
Returns
Type | Description |
---|---|
System.Boolean | True, if the specified TableRowAdv is successfully removed. Otherwise, false. This method also returns false if specified TableRowAdv was not found in the original TableRowAdvCollection. |
RemoveAt(Int32)
Removes the TableRowAdv instance at the specified index
of the TableRowAdvCollection.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the TableRowAdv to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Index is less than zero.-or-Index is equal to or greater than item count. |