Show / Hide Table of Contents

Class ClippingBoundary

Represent a clipping boundary to display specific portions of an Image, an Underlay, or a Wipeout.

Inheritance
System.Object
ClippingBoundary
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: netDxf
Assembly: CADability.dll
Syntax
public class ClippingBoundary : ICloneable

Constructors

| Improve this Doc View Source

ClippingBoundary(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Type

Gets the clipping boundary type, rectangular or polygonal.

Declaration
public ClippingBoundaryType Type { get; }
Property Value
Type Description
ClippingBoundaryType
| Improve this Doc View Source

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 Source

Clone()

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.

Implements

System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX