+ RectangleF layout;
+ layout.X = origin.X;
+ layout.Y = origin.Y;
+ AddString (s, family, style, emSize, layout, format);
+ }
+
+ [MonoTODO ("GdipAddStringI isn't implemented in libgdiplus")]
+ public void AddString (string s, FontFamily family, int style, float emSize, Rectangle layoutRect, StringFormat format)
+ {
+ if (s == null)
+ throw new ArgumentNullException ("s");
+
+ IntPtr ffamily = (family == null) ? IntPtr.Zero : family.NativeObject;
+ IntPtr sformat = (format == null) ? IntPtr.Zero : format.NativeObject;
+
+ Status status = GDIPlus.GdipAddStringI (nativePath, s, s.Length, ffamily, style, emSize, ref layoutRect, sformat);
+ GDIPlus.CheckStatus (status);
+ }
+
+ [MonoTODO ("GdipAddString isn't implemented in libgdiplus")]
+ public void AddString (string s, FontFamily family, int style, float emSize, RectangleF layoutRect, StringFormat format)
+ {
+ if (s == null)
+ throw new ArgumentNullException ("s");
+
+ IntPtr ffamily = (family == null) ? IntPtr.Zero : family.NativeObject;
+ IntPtr sformat = (format == null) ? IntPtr.Zero : format.NativeObject;
+
+ Status status = GDIPlus.GdipAddString (nativePath, s, s.Length, ffamily, style, emSize, ref layoutRect, sformat);
+ GDIPlus.CheckStatus (status);
+ }
+