Class ClippingBoundary
Inheritance
Implements
Inherited Members
Namespace: netDxf
Assembly: CADability.dll
Syntax
public class ClippingBoundary : ICloneable
Constructors
| Improve this Doc View SourceClippingBoundary(Vector2, Vector2)
Initializes a new instance of the ClippingBoundary class as a rectangular clipping boundary from two opposite corners.
Declaration
public ClippingBoundary(Vector2 firstCorner, Vector2 secondCorner)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | firstCorner | Rectangle first corner. |
| Vector2 | secondCorner | Rectangle second corner. |
ClippingBoundary(IEnumerable<Vector2>)
Initializes a new instance of the ClippingBoundary class as a polygonal clipping boundary.
Declaration
public ClippingBoundary(IEnumerable<Vector2> vertexes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<Vector2> | vertexes | The list of vertexes of the polygonal boundary. |
ClippingBoundary(Double, Double, Double, Double)
Initializes a new instance of the ClippingBoundary class as a rectangular clipping boundary.
Declaration
public ClippingBoundary(double x, double y, double width, double height)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x | Rectangle x-coordinate of the first corner. |
| System.Double | y | Rectangle y-coordinate of the first corner. |
| System.Double | width | Rectangle width. |
| System.Double | height | Rectangle height. |
Properties
| Improve this Doc View SourceType
Gets the clipping boundary type, rectangular or polygonal.
Declaration
public ClippingBoundaryType Type { get; }
Property Value
| Type | Description |
|---|---|
| ClippingBoundaryType |
Vertexes
Gets the list of vertexes of the polygonal boundary, or the opposite vertexes if the boundary is rectangular.
Declaration
public IReadOnlyList<Vector2> Vertexes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<Vector2> |
Methods
| Improve this Doc View SourceClone()
Creates a new ClippingBoundary that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new ClippingBoundary that is a copy of this instance. |