This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 411
1f3e21d4 39bb 4713 5db5 1120c6308527
haplokuon edited this page May 6, 2023
·
1 revision
netDxf 3.0.0 Library
Represents a view in paper space of the model.
Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0
C#
public class Viewport : EntityObject
VB
Public Class Viewport
Inherits EntityObject
C++
public ref class Viewport : public EntityObject
F#
type Viewport =
class
inherit EntityObject
end
Inheritance | Object → DxfObject → EntityObject → Viewport |
The viewport with id equals 1 is the view of the paper space layout itself and it does not show the model.
Viewport() | Initializes a new viewport object. |
Viewport(EntityObject) | Initializes a new instance of the Viewport class |
Viewport(Vector2, Vector2) | Initializes a new instance of the Viewport class |
Viewport(Vector2, Double, Double) | Initializes a new instance of the Viewport class |
BackClipPlane | Gets or sets the back clip plane Z value. |
Center | Gets or sets the center point in paper space units. |
CircleZoomPercent | Gets or sets the circle zoom percent. |
ClippingBoundary | Entity that serves as the viewport clipping boundary (only present if viewport is non-rectangular). |
CodeName | Gets the DXF object name. (Inherited from DxfObject) |
Color | Gets or sets the entity color. (Inherited from EntityObject) |
Elevation | Gets or sets the elevation. |
FrontClipPlane | Gets or sets the front clip plane Z value. |
FrozenLayers | Gets the list of layers that are frozen in this viewport. |
GridSpacing | Gets or sets the grid spacing. |
Handle | Gets the handle assigned to the DXF object. (Inherited from DxfObject) |
Height | Gets or sets the height in paper space units. |
IsVisible | Gets or set the entity visibility. (Inherited from EntityObject) |
Layer | Gets or sets the entity layer. (Inherited from EntityObject) |
LensLength | Gets or sets the perspective lens length. |
Linetype | Gets or sets the entity line type. (Inherited from EntityObject) |
LinetypeScale | Gets or sets the entity line type scale. (Inherited from EntityObject) |
Lineweight | Gets or sets the entity line weight, one unit is always 1/100 mm (default = ByLayer). (Inherited from EntityObject) |
Normal | Gets or sets the entity normal. (Inherited from EntityObject) |
Owner | Gets the owner of the actual DXF object. (Inherited from EntityObject) |
Reactors | Gets the list of DXF objects that has been attached to this entity. (Inherited from EntityObject) |
SnapAngle | Gets or sets the snap angle. |
SnapBase | Gets or sets the snap base point. |
SnapSpacing | Gets or sets the snap spacing. |
Stacking | Viewport status field: -1 = On, but is fully off screen, or is one of the viewports that is not active because the $MAXACTVP count is currently being exceeded. 0 = Off 1 = Stacking value reserved for the layout view. positive value = On and active. The value indicates the order of stacking for the viewports, where 1 is the active viewport, 2 is the next, and so forth. |
Status | Gets or sets the viewport status flags: |
Transparency | Gets or sets layer transparency (default: ByLayer). (Inherited from EntityObject) |
TwistAngle | Gets or sets the view twist angle. |
Type | Gets the entity type. (Inherited from EntityObject) |
UcsOrigin | Gets or sets the UCS origin. |
UcsXAxis | Gets or sets the UCS X axis. |
UcsYAxis | Gets or sets the UCS Y axis. |
ViewCenter | Gets or sets the view center point (in DCS). |
ViewDirection | Gets or sets the view direction vector (in WCS). |
ViewHeight | Gets or sets the view height (in model space units). |
ViewTarget | Gets or sets the view target point (in WCS). |
Width | Gets or sets the width in paper space units. |
XData | Gets the entity extended data. (Inherited from DxfObject) |
Clone | Creates a new viewport that is a copy of the current instance. (Overrides EntityObject.Clone()) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ToString | Converts the value of this instance to its equivalent string representation. (Inherited from EntityObject) |
TransformBy(Matrix4) | Moves, scales, and/or rotates the current entity given a 4x4 transformation matrix. (Inherited from EntityObject) |
TransformBy(Matrix3, Vector3) | Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector. (Overrides EntityObject.TransformBy(Matrix3, Vector3)) |
ClippingBoundaryAdded | |
ClippingBoundaryRemoved | |
LayerChanged |
(Inherited from EntityObject) |
LinetypeChanged |
(Inherited from EntityObject) |
XDataAddAppReg |
(Inherited from DxfObject) |
XDataRemoveAppReg |
(Inherited from DxfObject) |