| Revit 2022 API |
| OverrideGraphicSettings..::..SetSurfaceTransparency Method |
| OverrideGraphicSettings Class See Also |
Sets the projection surface transparency.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2014
Syntax
| C# |
|---|
public OverrideGraphicSettings SetSurfaceTransparency( int transparency ) |
| Visual Basic |
|---|
Public Function SetSurfaceTransparency ( _ transparency As Integer _ ) As OverrideGraphicSettings |
| Visual C++ |
|---|
public: OverrideGraphicSettings^ SetSurfaceTransparency( int transparency ) |
Parameters
- transparency
- Type: System..::..Int32
Value of the transparency of the projection surface (0 = opaque, 100 = fully transparent).
Return Value
Reference to the changed object.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | Transparency must be greater than 0 and less than 100. |