RhinoCommon API
CommonComponentTableT Class |
Provides a base table type that encompasses all document tables, both in RhinoDoc and File3dm.

SystemObject
Rhino.FileIOCommonComponentTableT
Rhino.DocObjects.TablesRhinoDocCommonTableT
Rhino.FileIOFile3dmCommonComponentTableT
Rhino.FileIOCommonComponentTableT
Rhino.DocObjects.TablesRhinoDocCommonTableT
Rhino.FileIOFile3dmCommonComponentTableT
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)

public abstract class CommonComponentTable<T> : ICommonComponentTable<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, ICollection<T>, IList<T>, IReadOnlyList<T> where T : ModelComponent
Public MustInherit Class CommonComponentTable(Of T As ModelComponent) Implements ICommonComponentTable(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), IEnumerable, ICollection(Of T), IList(Of T), IReadOnlyList(Of T)
Type Parameters
- T
- A model component.
The CommonComponentTableT type exposes the following members.

Name | Description | |
---|---|---|
![]() | ComponentType |
Returns the actual component type of a table.
|
![]() | Count |
Returns the count of all items, including deleted ones.
|

Name | Description | |
---|---|---|
![]() | Clear |
Marks all items as deleted.
|
![]() | Delete |
Deletes an item. Items that are deleted are still keeping their space, but the 'IsDeleted' flag is checked.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindId |
Uses the guid to find a model component. Deleted objects cannot be found by id.
The guid is the value that is stored in the .Id property.
In a single document, no two active objects have the same guid. If an object is
replaced with a new object, then the guid persists. For example, if the _Move command
moves an object, then the moved object inherits its guid from the starting object.
If the Copy command copies an object, then the copy gets a new guid. This guid persists
through file saving/opening operations. This function will not find grip objects.
|
![]() | GetEnumerator |
Returns the enumerator that yields all items.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
