Пример #1
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);
 }
Пример #2
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)));
 }