예제 #1
0
 /// <summary>
 /// Provides some interesting information about the PageSettings in String form.
 /// </summary>
 public override string ToString()
 {
     return("[PageSettings:"
            + " Color=" + Color.ToString()
            + ", Landscape=" + Landscape.ToString()
            + ", Margins=" + Margins.ToString()
            + ", PaperSize=" + PaperSize.ToString()
            + ", PaperSource=" + PaperSource.ToString()
            + ", PrinterResolution=" + PrinterResolution.ToString()
            + "]");
 }
예제 #2
0
        // Convert this object into a string.
        public override String ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("[PageSettings: Color=");
            builder.Append(Color.ToString());
            builder.Append(", Landscape=");
            builder.Append(Landscape.ToString());
            builder.Append(", Margins=");
            builder.Append(Margins.ToString());
            builder.Append(", PaperSize=");
            builder.Append(PaperSize.ToString());
            builder.Append(", PaperSource=");
            builder.Append(PaperSource.ToString());
            builder.Append(", PrinterResolution=");
            builder.Append(PrinterResolution.ToString());
            builder.Append(']');
            return(builder.ToString());
        }