| Revit 2020 API |
| Element..::..CanBeHidden Method |
| Element Class See Also |
Indicates if the element can be hidden in the view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Syntax
| C# |
|---|
public bool CanBeHidden( View pView ) |
| Visual Basic |
|---|
Public Function CanBeHidden ( _ pView As View _ ) As Boolean |
| Visual C++ |
|---|
public: bool CanBeHidden( View^ pView ) |
Parameters
- pView
- Type: Autodesk.Revit.DB..::..View
Return Value
If the element is not permitted to be hidden, false is returned.
Remarks
See discussion for some types of elements which may not be hidden.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | Thrown when argument is nullNothingnullptra null reference (Nothing in Visual Basic). |