Gtk.Widget.GetSizeRequest Method
Gets the size request that was explicitly set for the widget using Widget.SetSizeRequest.

Syntax

public void GetSizeRequest (out int width, out int height)

Parameters

width
Return location for width, or null.
height
Return location for height, or null.

Remarks

A value of -1 stored in width or height indicates that that dimension has not been set explicitly and the natural requisition of the widget will be used intead. See Widget.SetSizeRequest. To get the size a widget will actually use, call Widget.SizeRequest instead of this method.

Requirements

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