GtkSharp/pango/Layout.custom
Duncan Mak e059803b19 2003-01-06 Pedro Abelleira Seco <pedroabelleira@yahoo.es>
* pango/Layout.custom: Add Size get property and add some nicer overloads
        to avoid explicit passing in the string length

svn path=/trunk/gtk-sharp/; revision=10231
2003-01-07 04:03:48 +00:00

28 lines
789 B
Plaintext

// Pango.Layout.custom - Pango Layout class customizations
//
// Author: Pedro Abelleira Seco <pedroabelleira@yahoo.es>
//
// This code is inserted after the automatically generated code.
/// <summary> Size property </summary>
/// <remarks> Returns the size of the Layout </remarks>
public System.Drawing.Size Size {
get {
int width, height;
GetSize (out width, out height);
return new System.Drawing.Size (width, height);
}
}
/// <summary> SetText Method, overloaded to not having to calculate string length </summary>
public void SetText(string text) {
SetText(text, text.Length);
}
/// <summary> SetMarkup Method, overloaded to not having to calculate string length </summary>
public void SetMarkup(string markup) {
SetText(markup, markup.Length);
}