A human readable name for the Element.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Syntax
| C# |
|---|
public override string Name { set; } |
| Visual Basic |
|---|
Public Overrides WriteOnly Property Name As String Set |
| Visual C++ |
|---|
public: virtual property String^ Name { void set (String^ value) override; } |
Remarks
The Name property is a human readable name for the element, such as Wall.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..InvalidOperationException | Thrown when the name of the element cannot be changed. |
| Autodesk.Revit.Exceptions..::..ArgumentException | Thrown when the element requires a unique name and a non-unique name is set. |