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

Class Size

Represents size with width and height dimensions.

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

Constructors

Size()

Initializes a new instance of the Size class.

Declaration
public Size()

Size(double, double, ScreenMeasurementUnit)

Initializes a new instance of the Size class with specified dimensions.

Declaration
public Size(double width, double height, ScreenMeasurementUnit unit)
Parameters
Type Name Description
double width

The width.

double height

The height.

ScreenMeasurementUnit unit

The measurement unit.

Properties

Height

Specifies the height.

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

HeightCm

Specifies the height in centimeters.

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

HeightEmu

Specifies the height in EMUs.

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

HeightInches

Specifies the height in inches.

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

HeightPixels

Specifies the height in pixels.

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

HeightPoints

Exposes the height points associated with Size.

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

The height points returned by the operation.

Width

Specifies the width.

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

WidthCm

Specifies the width in centimeters.

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

WidthEmu

Specifies the width in EMUs.

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

WidthInches

Specifies the width in inches.

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

WidthPixels

Specifies the width in pixels.

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

WidthPoints

Exposes the width points associated with Size.

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

The width points returned by the operation.

Back to top

DR-IT Software documentation

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

Generated by DocFX