Class Size
Represents the size used by the presentation model.
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.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.
Declaration
public Size(double width, double height, ScreenMeasurementUnit unit)
Parameters
| Type | Name | Description |
|---|---|---|
| double | width | The width of the object, in document units. |
| double | height | The height of the object, in document units. |
| ScreenMeasurementUnit | unit | The unit used for the conversion. |
Properties
Height
Gets or sets the height associated with this object.
Declaration
public DoubleUnit Height { get; set; }
Property Value
| Type | Description |
|---|---|
| DoubleUnit |
HeightCm
Gets or sets the height cm associated with this object.
Declaration
public double HeightCm { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HeightEmu
Gets or sets the height emu associated with this object.
Declaration
public double HeightEmu { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HeightInches
Gets or sets the height inches associated with this object.
Declaration
public double HeightInches { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HeightPixels
Gets or sets the height pixels associated with this object.
Declaration
public double HeightPixels { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HeightPoints
Gets or sets the height points associated with this object.
Declaration
public double HeightPoints { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Width
Gets or sets the width associated with this object.
Declaration
public DoubleUnit Width { get; set; }
Property Value
| Type | Description |
|---|---|
| DoubleUnit |
WidthCm
Gets or sets the width cm associated with this object.
Declaration
public double WidthCm { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
WidthEmu
Gets or sets the width emu associated with this object.
Declaration
public double WidthEmu { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
WidthInches
Gets or sets the width inches associated with this object.
Declaration
public double WidthInches { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
WidthPixels
Gets or sets the width pixels associated with this object.
Declaration
public double WidthPixels { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
WidthPoints
Gets or sets the width points associated with this object.
Declaration
public double WidthPoints { get; set; }
Property Value
| Type | Description |
|---|---|
| double |