• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Position

Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane in multiple units.

Inheritance
object
Position
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class Position

Constructors

Position(double, double, MeasurementUnit)

Initializes a new instance of the Point class with the specified coordinates and with the specified unit.

Declaration
public Position(double x, double y, MeasurementUnit unit)
Parameters
Type Name Description
double x

The horizontal position.

double y

The vertical position.

MeasurementUnit unit

The unit of the x,y values.

Properties

X

Gets or sets the horizontal position in units.

Declaration
public DoubleUnit X { get; set; }
Property Value
Type Description
DoubleUnit

XCm

Gets or sets the horizontal position in centimeters.

Declaration
public double XCm { get; set; }
Property Value
Type Description
double

XEmu

Gets or sets the horizontal position in EMUs.

Declaration
public double XEmu { get; set; }
Property Value
Type Description
double

XInches

Gets or sets the horizontal position in inches.

Declaration
public double XInches { get; set; }
Property Value
Type Description
double

XPixels

Gets or sets the horizontal position in pixels.

Declaration
public double XPixels { get; set; }
Property Value
Type Description
double

XPoints

Gets or sets the horizontal position in points.

Declaration
public double XPoints { get; set; }
Property Value
Type Description
double

Y

Gets or sets the vertical position in units.

Declaration
public DoubleUnit Y { get; set; }
Property Value
Type Description
DoubleUnit

YCm

Gets or sets the vertical position in centimeters.

Declaration
public double YCm { get; set; }
Property Value
Type Description
double

YEmu

Gets or sets the vertical position in EMUs.

Declaration
public double YEmu { get; set; }
Property Value
Type Description
double

YInches

Gets or sets the vertical position in inches.

Declaration
public double YInches { get; set; }
Property Value
Type Description
double

YPixels

Gets or sets the vertical position in pixels.

Declaration
public double YPixels { get; set; }
Property Value
Type Description
double

YPoints

Gets or sets the vertical position in points.

Declaration
public double YPoints { get; set; }
Property Value
Type Description
double
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX