Ejemplo n.º 1
0
 /// <summary>
 /// Converts the scaling option to human-readable string.
 /// </summary>
 /// <returns>A string that represents this scaling option.</returns>
 public override string ToString()
 {
     return(Value.ToString() + ": " +
            ((CustomScaleWidth != null) ? CustomScaleWidth.ToString() : "null") + " x " +
            ((CustomScaleHeight != null) ? CustomScaleHeight.ToString() : "null") + " x " +
            ((CustomSquareScale != null) ? CustomSquareScale.ToString() : "null"));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Converts the page scaling setting to human-readable string.
 /// </summary>
 /// <returns>A string that represents this page scaling setting.</returns>
 public override string ToString()
 {
     if ((Value != PageScaling.Custom) || (Value != PageScaling.CustomSquare))
     {
         return(Value.ToString());
     }
     else
     {
         return(Value.ToString() +
                ", ScaleWidth=" + CustomScaleWidth.ToString(CultureInfo.CurrentCulture) +
                ", ScaleHeight=" + CustomScaleHeight.ToString(CultureInfo.CurrentCulture) +
                ", SquareScale=" + CustomSquareScale.ToString(CultureInfo.CurrentCulture));
     }
 }