VegaRise.NET
Back to DOM

BaseTableElementClass

Definition

Namespace
DOM.Abstracts
Assembly
DOM.dll

Base class for table-related DOM elements.

Remarks

sits between and the concrete table element types (,, ). It exists so that all table parts share a common container base while remaining distinguishable from non-table containers at compile time. BaseTableElement ElementsContainer Table TableRow TableCell All container behaviour (child collection, element queries, insertion, removal) comes from the base class; this type adds no members of its own. ElementsContainer

Examples

csharp
1// 1. Store heterogeneous table parts in a list
2var parts = new List<BaseTableElement>
3{
4 new Table(2, 2),
5 new TableRow(),
6 new TableCell()
7};
8
csharp
1// 2. Cast a concrete table part
2BaseTableElement part = new Table(2, 2);
3
csharp
1// 3. Type-check during traversal
2if (element is BaseTableElement t) { /* handle table */ }
3
csharp
1// 4. Query the container children
2var rows = ((Table)part).Rows;
3
No members discovered for this type.
VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.