public void Write(PdfRectangle rect) { const string format = Config.SignificantFigures3; WriteSeparator(CharCat.Delimiter, '/'); WriteRaw(PdfEncoders.Format("[{0:" + format + "} {1:" + format + "} {2:" + format + "} {3:" + format + "}]", rect.X1, rect.Y1, rect.X2, rect.Y2)); _lastCat = CharCat.Delimiter; }
private static string Format(string format, params double?[] values) { int length = values.Length; object[] objValues = new object[length]; for (int i = 0; i < length; i++) { objValues[i] = values[i] ?? (object)"null"; } return(PdfEncoders.Format(format, objValues)); }
/// <summary> /// Returns the rectangle as a string in the form «[x1 y1 x2 y2]». /// </summary> public override string ToString() { const string format = Config.SignificantFigures3; return(PdfEncoders.Format("[{0:" + format + "} {1:" + format + "} {2:" + format + "} {3:" + format + "}]", _x1, _y1, _x2, _y2)); }
/// <summary> /// Returns the rectangle as a string in the form «[x1 y1 x2 y2]». /// </summary> public override string ToString() { return(PdfEncoders.Format("[{0:0.###} {1:0.###} {2:0.###} {3:0.###}]", this.x1, this.y1, this.x2, this.y2)); }
/// <summary> /// Initializes a new instance with the culture invariant formatted specified arguments. /// </summary> public PdfLiteral(string format, params object[] args) { _value = PdfEncoders.Format(format, args); }
public void Write(PdfRectangle rect) { WriteSeparator(CharCat.Delimiter, '/'); WriteRaw(PdfEncoders.Format("[{0:0.###} {1:0.###} {2:0.###} {3:0.###}]", rect.X1, rect.Y1, rect.X2, rect.Y2)); this.lastCat = CharCat.Delimiter; }
/// <summary> /// Returns the rectangle as a string in the form «[x1 y1 x2 y2]». /// </summary> public override string ToString() { return(PdfEncoders.Format("[{0:0.###} {1:0.###} {2:0.###} {3:0.###}]", x1, y1, x2, y2)); }