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
System.Object
Position
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class Position : object

Constructors

Position(Double, Double, ScreenMeasurementUnit)

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

Declaration
public Position(double x, double y, ScreenMeasurementUnit unit)
Parameters
Type Name Description
System.Double x

The horizontal position.

System.Double y

The vertical position.

ScreenMeasurementUnit 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
System.Double

XEmu

Gets or sets the horizontal position in EMUs.

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

XInches

Gets or sets the horizontal position in inches.

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

XPixels

Gets or sets the horizontal position in pixels.

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

XPoints

Gets or sets the horizontal position in points.

Declaration
public double XPoints { get; set; }
Property Value
Type Description
System.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
System.Double

YEmu

Gets or sets the vertical position in EMUs.

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

YInches

Gets or sets the vertical position in inches.

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

YPixels

Gets or sets the vertical position in pixels.

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

YPoints

Gets or sets the vertical position in points.

Declaration
public double YPoints { get; set; }
Property Value
Type Description
System.Double
Back to top Generated by DocFX