Method RemoveField
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
RemoveField()
Takes out the field of the object's words, as AutoCAD's RemoveField(): that of the property TEXT, as
RemoveField(string) takes one out.
public DxfField RemoveField()
Returns
- DxfField
The field, erased; null where the object had none.
Exceptions
- InvalidOperationException
Thrown when the object is erased.
RemoveField(string)
Takes out the field of a property of the object, as AutoCAD's RemoveField(propertyName): its entry of the
dictionary ACAD_FIELD taken out, the field erased with its children, they and it taken out of the drawing's list of
fields (ACAD_FIELDLIST) where it has one, and the dictionary ACAD_FIELD taken out of the extension dictionary once it
is empty. The object's words are kept as they are, the field's last value among them.
public DxfField RemoveField(string propertyName)
Parameters
propertyNamestringThe name of the property, letters of either case the same.
Returns
- DxfField
The field, erased; null where the object had none of the property.
Exceptions
- ArgumentNullException
Thrown when the name is null.
- InvalidOperationException
Thrown when the object is erased.
RemoveField(DxfField)
Takes out a field of the object, as AutoCAD's RemoveField(fieldId): of the property it is the field of, as
RemoveField(string) takes one out.
public void RemoveField(DxfField field)
Parameters
fieldDxfFieldThe field.
Exceptions
- ArgumentNullException
Thrown when the field is null.
- ArgumentException
Thrown when the field is not one of the object's.
- InvalidOperationException
Thrown when the object is erased.