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