Gtk.Widget.CreatePangoLayout Method
Creates a new Pango.Layout with the appropriate colormap, font description, and base direction for drawing text for widget.

Syntax

public Pango.Layout CreatePangoLayout (string text)

Parameters

text
text to set on the layout (can be null).

Returns

The new Pango.Layout.

Remarks

If you keep a Pango.Layout created in this way around, in order notify the layout of changes to the base direction or font of this widget, you must call Pango.Layout.ContextChanged in response to the Widget.StyleSet and Widget.DirectionChanged events for the widget.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)