Show / Hide Table of Contents

Class VPort

Represents a document viewport.

Inheritance
System.Object
DxfObject
TableObject
VPort
Implements
IHasXData
System.ICloneable
System.IComparable
System.IComparable<TableObject>
System.IEquatable<TableObject>
Inherited Members
TableObject.NameChanged
TableObject.OnNameChangedEvent(String, String)
TableObject.XDataAddAppReg
TableObject.OnXDataAddAppRegEvent(ApplicationRegistry)
TableObject.XDataRemoveAppReg
TableObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
TableObject.Name
TableObject.IsReserved
TableObject.InvalidCharacters
TableObject.XData
TableObject.IsValidName(String)
TableObject.ToString()
TableObject.CompareTo(Object)
TableObject.CompareTo(TableObject)
TableObject.GetHashCode()
TableObject.Equals(Object)
TableObject.Equals(TableObject)
DxfObject.CodeName
DxfObject.Handle
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Tables
Assembly: CADability.dll
Syntax
public class VPort : TableObject, IHasXData, ICloneable, IComparable, IComparable<TableObject>, IEquatable<TableObject>

Constructors

| Improve this Doc View Source

VPort(String)

Initializes a new instance of the VPort class.

Declaration
public VPort(string name)
Parameters
Type Name Description
System.String name

Fields

| Improve this Doc View Source

DefaultName

Default VPort name.

Declaration
public const string DefaultName = "*Active"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

Active

Gets the active viewport.

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

GridSpacing

Gets or sets the grid spacing X and Y.

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

Owner

Gets the owner of the actual viewport.

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

ShowGrid

Gets or sets the grid on/off.

Declaration
public bool ShowGrid { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapBasePoint

Gets or sets the snap base point in DCS (Display Coordinate System)

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

SnapMode

Gets or sets the snap mode on/off.

Declaration
public bool SnapMode { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapSpacing

Gets or sets the snap spacing X and Y.

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

ViewAspectRatio

Gets or sets the view aspect ratio (view width/view height).

Declaration
public double ViewAspectRatio { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

ViewCenter

Gets or sets the view center point in DCS (Display Coordinate System)

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

ViewDirection

Gets or sets the view direction from target point in WCS (World Coordinate System).

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

ViewHeight

Gets or sets the view height.

Declaration
public double ViewHeight { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

ViewTarget

Gets or sets the view target point in WCS (World Coordinate System).

Declaration
public Vector3 ViewTarget { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

Clone()

Creates a new VPort that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new VPort that is a copy of this instance.

Overrides
TableObject.Clone()
| Improve this Doc View Source

Clone(String)

Creates a new VPort that is a copy of the current instance.

Declaration
public override TableObject Clone(string newName)
Parameters
Type Name Description
System.String newName

VPort name of the copy.

Returns
Type Description
TableObject

A new VPort that is a copy of this instance.

Overrides
TableObject.Clone(String)

Implements

IHasXData
System.ICloneable
System.IComparable
System.IComparable<T>
System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX