Class CKColumns
Represents a collection of CKColumn objects in a Word table.
Inherited Members
Namespace: CoverageKiller2.DOM.Tables
Assembly: CoverageKiller2.dll
Syntax
public class CKColumns : CKDOMObject, IDOMObject, IEnumerable<CKColumn>, IEnumerable
Remarks
Version: CK2.00.02.0003
Constructors
CKColumns(IDOMObject)
Declaration
public CKColumns(IDOMObject parent)
Parameters
Type | Name | Description |
---|---|---|
IDOMObject | parent |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
IsDirty
Indicates whether this DOM object has unsaved changes.
Declaration
public override bool IsDirty { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsOrphan
Indicates whether this DOM object is orphaned (e.g., lost its backing COM reference).
Declaration
public override bool IsOrphan { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
Overrides
this[int]
Declaration
public CKColumn this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index |
Property Value
Type | Description |
---|---|
CKColumn |
Parent
Gets the logical parent of this DOM object.
Declaration
public override IDOMObject Parent { get; protected set; }
Property Value
Type | Description |
---|---|
IDOMObject |
Overrides
Methods
Delete(CKColumn)
Deletes the specified column from the table.
Declaration
public void Delete(CKColumn column)
Parameters
Type | Name | Description |
---|---|---|
CKColumn | column | The column to delete. |
Delete(IEnumerable<CKColumn>)
Deletes all the specified columns from the table.
Declaration
public void Delete(IEnumerable<CKColumn> columns)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CKColumn> | columns | The collection of columns to delete. |
Delete(Func<CKColumn, bool>)
Deletes all columns matching the given predicate.
Declaration
public void Delete(Func<CKColumn, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<CKColumn, bool> | predicate | A function that evaluates each column. |
Delete(int)
Deletes the column at the specified one-based index.
Declaration
public void Delete(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The one-based index of the column to delete. |
GetEnumerator()
Declaration
public IEnumerator<CKColumn> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<CKColumn> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |