<Code Lib>
2022 Class
Changes 0
C

Definitions

Description:
A base class that supports the addition of new parameter definitions.
Remarks:
There are two derivations of this class, one of which handles external parameters and another which handles internal parameters.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Definitions
    Autodesk.Revit.DB.ExternalDefinitions
    Autodesk.Revit.DB.InternalDefinitions

public class Definitions : IEnumerable<Definition>, 
	IDisposable

Name Return Type Description
C Definitions() Definitions Constructs an empty set of parameter definitions.

Name Return Type Description
M Contains(Definition) bool Tests for the existence of a definition within the set.
M Create(ExternalDefinitionCreationOptions) nullNothingnullptr Creates a new parameter definition using specified options.
M Dispose() None Releases all resources used by the
M GetBasicIEnumerator() IEnumerator Returns an enumerator that iterates through a collection.
M GetEnumerator() The enumerator. Retrieves an enumerator to the collection.

Name Return Type Description
P IsEmpty bool Identifies if the definitions collection is empty.
P Item Definition Retrieves a definition by a given name.
P Size int The number of definitions in the collection.

Loading…