Exemplo n.º 1
0
 /// <summary>
 /// Returns the value of the size in inches.
 /// </summary>
 /// <returns>The value of the size in inches.</returns>
 public double InInches()
 {
     return(UnitConversions.PointsToInches(sizeInPoints));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new Position corresponding to the specified x and y
 /// coordinates in Inches.
 /// </summary>
 /// <param name="xInInches">X coordinate in Inches</param>
 /// <param name="yInInches">Y coordinate in Inches</param>
 public void FromInches(double xInInches, double yInInches)
 {
     this.x = UnitConversions.InchesToPoints(xInInches);
     this.y = UnitConversions.InchesToPoints(yInInches);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Utility method to construct a size in inches.
 /// </summary>
 /// <param name="sizeInInches">The size in inches.</param>
 /// <returns>A new size object.</returns>
 public static Size FromInches(double sizeInInches)
 {
     return(new Size(UnitConversions.InchesToPoints(sizeInInches)));
 }