Table of Contents

Class DxfAttributeCollection

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

The ATTRIBs of an INSERT, as AutoCAD's AttributeCollection: its DxfAttributeReferences in the order of the file, read as they stand each time, and the one way an attribute is added to it, AppendAttribute(DxfAttributeReference).

public sealed class DxfAttributeCollection : IReadOnlyList<DxfAttributeReference>, IReadOnlyCollection<DxfAttributeReference>, IEnumerable<DxfAttributeReference>, IEnumerable
Inheritance
DxfAttributeCollection
Implements
Inherited Members
Extension Methods

Remarks

The INSERT of BOLT with the ATTRIB MARK of B-12 has a collection of Count 1 whose first is MARK. An attribute erased leaves it, the others keeping their handles and places in the file.

Properties

Count

Gets how many ATTRIBs the INSERT has, as AutoCAD's Count.

this[int]

Gets the ATTRIB at a place, from nought, in the order of the file.

Methods

AppendAttribute(DxfAttributeReference)

Adds an attribute made in code to the INSERT, as AutoCAD's AppendAttribute: after its other ATTRIBs, before their SEQEND, with a handle of its own and the INSERT as its owner, its look and groups as made; every other record keeping its handle and bytes. An INSERT with no ATTRIB yet is given its attributes-follow flag (66) and a SEQEND. The same object stands for the new ATTRIB from then on.

GetEnumerator()

Gets an enumerator over the ATTRIBs as they stand when it is asked for.