Click or drag to resize

Layouts Class

Represents a collection of layouts.
Inheritance Hierarchy
SystemObject
  DXFReaderNETDxfObject
    DXFReaderNET.CollectionsTableObjectsLayout
      DXFReaderNET.CollectionsLayouts

Namespace:  DXFReaderNET.Collections
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public sealed class Layouts : TableObjects<Layout>

The Layouts type exposes the following members.

Properties
  NameDescription
Public propertyCodeName
Gets the dxf entity type string.
(Inherited from DxfObject.)
Public propertyCount
Gets the number of table objects.
(Inherited from TableObjectsT.)
Public propertyHandle
Gets the handle assigned to the dxf object.
(Inherited from DxfObject.)
Public propertyItem
Gets a table object from the list by name.
(Inherited from TableObjectsT.)
Public propertyItems
Gets the table object list.
(Inherited from TableObjectsT.)
Public propertyMaxCapacity
Gets the maximum number of objects the collection can hold.
(Inherited from TableObjectsT.)
Public propertyNames
Gets the ObjectTable names.
(Inherited from TableObjectsT.)
Public propertyOwner
Gets the owner of the actual dxf object.
(Inherited from TableObjectsT.)
Top
Methods
  NameDescription
Public methodAdd
Adds a table object to the list.
(Inherited from TableObjectsT.)
Public methodClear
Removes all table objects that are not reserved and have no references.
(Inherited from TableObjectsT.)
Public methodContains(String)
Checks if a table object already exists in the list.
(Inherited from TableObjectsT.)
Public methodContains(T)
Checks if a table object already exists in the list.
(Inherited from TableObjectsT.)
Public methodGetEnumerator
Returns an enumerator that iterates through the table object collection.
(Inherited from TableObjectsT.)
Public methodGetReferences(String)
Gets the dxf objects referenced by a table.
(Inherited from TableObjectsT.)
Public methodGetReferences(T)
Gets the dxf objects referenced by a T.
(Inherited from TableObjectsT.)
Public methodRemove(Layout)
Deletes a layout and removes the layout entities from the document.
(Overrides TableObjectsTRemove(T).)
Public methodRemove(String)
Deletes a layout and removes the layout entities from the document.
(Overrides TableObjectsTRemove(String).)
Public methodToString
Obtains a string that represents the dxf object.
(Inherited from DxfObject.)
Public methodTryGetValue
Gets the table object associated with the specified name.
(Inherited from TableObjectsT.)
Top
Remarks
AutoCad limits the number of layouts to 256, but at the same time it allows to import dxf files with more than that, for this reason the max capacity has been set to short.MaxValue. The maximum number of layouts is also limited by the number of blocks, due to that for each layout a block record must exist in the blocks collection.
See Also