Click or drag to resize

Viewport Class

Represents a view in paper space of the model.
Inheritance Hierarchy

Namespace:  DXFReaderNET.Entities
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public class Viewport : EntityObject

The Viewport type exposes the following members.

Constructors
  NameDescription
Public methodViewport
Initializes a new viewport object.
Top
Properties
  NameDescription
Public propertyBackClipPlane
Gets or sets the back clip plane Z value.
Public propertyCenter
Gets or sets the center point in paper space units.
Public propertyCircleZoomPercent
Gets or sets the circle zoom percent.
Public propertyClippingBoundary
Entity that serves as the viewport clipping boundary (only present if viewport is non-rectangular).
Public propertyCodeName
Gets the dxf entity type string.
(Inherited from DxfObject.)
Public propertyColor
Gets or sets the entity color.
(Inherited from EntityObject.)
Public propertyElevation
Gets or sets the elevation.
Public propertyFrontClipPlane
Gets or sets the front clip plane Z value.
Public propertyFrozenLayers
Gets the list of layers that are frozen in this viewport.
Public propertyGridSpacing
Gets or sets the grid spacing.
Public propertyHandle
Gets the handle assigned to the dxf object.
(Inherited from DxfObject.)
Public propertyHeight
Gets or sets the height in paper space units.
Public propertyIsVisible
Gets or set the entity visibility.
(Inherited from EntityObject.)
Public propertyLayer
Gets or sets the entity layer.
(Inherited from EntityObject.)
Public propertyLensLength
Gets or sets the perspective lens length.
Public propertyLinetype
Gets or sets the entity line type.
(Inherited from EntityObject.)
Public propertyLinetypeScale
Gets or sets the entity line type scale.
(Inherited from EntityObject.)
Public propertyLineweight
Gets or sets the entity line weight, one unit is always 1/100 mm (default = ByLayer). Valid value are: 0, 5, 9, 13, 15, 18, 20, 25, 30, 35, 40, 50, 53, 60, 70, 80, 90, 100, 106, 120, 140, 158, 200, and 211.
(Inherited from EntityObject.)
Public propertyNormal
Gets or sets the entity normal.
(Inherited from EntityObject.)
Public propertyOwner
Gets the owner of the actual dxf object.
(Inherited from EntityObject.)
Public propertyReactors
Gets or sets the list of dxf objects that has been attached to this entity.
(Inherited from EntityObject.)
Public propertySnapAngle
Gets or sets the snap angle.
Public propertySnapBase
Gets or sets the snap base point.
Public propertySnapSpacing
Gets or sets the snap spacing.
Public propertyStacking
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.
Public propertyStatus
Gets or sets the viewport status flags:
Public propertyTransparency
Gets or sets layer transparency (default: ByLayer).
(Inherited from EntityObject.)
Public propertyTwistAngle
Gets or sets the view twist angle.
Public propertyType
Gets the entity type.
(Inherited from EntityObject.)
Public propertyUcsOrigin
Gets or sets the UCS origin.
Public propertyUcsXAxis
Gets or sets the UCS X axis.
Public propertyUcsYAxis
Gets or sets the UCS Y axis.
Public propertyViewCenter
Gets or sets the view center point (in DCS).
Public propertyViewDirection
Gets or sets the view direction vector (in WCS).
Public propertyViewHeight
Gets or sets the view height (in model space units).
Public propertyViewTarget
Gets or sets the view target point (in WCS).
Public propertyWidth
Gets or sets the width in paper space units.
Public propertyXData
Gets or sets the entity extended data.
(Inherited from EntityObject.)
Top
Methods
  NameDescription
Public methodClone
Creates a new viewport that is a copy of the current instance.
(Overrides EntityObjectClone.)
Public methodToString
Converts the value of this instance to its equivalent string representation.
(Inherited from EntityObject.)
Top
Remarks
The viewport with id equals 1 is the view of the paper space layout itself and it does not show the model.
See Also