|
|
Renders a 2D rectangle in the XY plane at the current Z depth.
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
| Visual Basic |
|---|
Public Sub Rectangle ( _ bottomLeft As Point2D, _ topRight As Point2D, _ filled As Boolean _ ) |
| C# |
|---|
public void Rectangle( Point2D bottomLeft, Point2D topRight, bool filled ) |
| Visual C++ |
|---|
public: void Rectangle( Point2D^ bottomLeft, Point2D^ topRight, bool filled ) |
Parameters
- bottomLeft
- Type: Autodesk.Navisworks.Api..::..Point2D
Bottom-left coordinate of rectangle.
- topRight
- Type: Autodesk.Navisworks.Api..::..Point2D
Top-right coordinate of rectangle.
- filled
- Type: System..::..Boolean
Should the rectangle be filled in or an outline.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ObjectDisposedException | Object has been Disposed |
| System..::..NotSupportedException | Object is Read-Only |
| System..::..ArgumentNullException | Argument 'bottomLeft' is null |
| System..::..ArgumentException | Argument 'bottomLeft' has been Disposed |
| System..::..ArgumentNullException | Argument 'topRight' is null |
| System..::..ArgumentException | Argument 'topRight' has been Disposed |