e059803b19
* 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
27 lines
789 B
Text
27 lines
789 B
Text
// 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);
|
|
}
|
|
|