Gtk Label SetPadding is a method of the Gtk# library that allows you to set the padding of a label widget. Padding is the space added around the contents of the widget.
Example 1: Gtk.Label label = new Gtk.Label("Hello World"); label.SetPadding(10, 10, 10, 10);
This example creates a new label with the text "Hello World" and sets the padding to 10 pixels on all sides.
Example 2: using Gtk; ... Label label = new Label("My Label"); label.SetPadding(5, 0, 0, 5);
This example creates a new label with the text "My Label" and sets the padding to 5 pixels on the top, 0 pixels on the right, 0 pixels on the bottom, and 5 pixels on the left.
The package library for Gtk# is the Gtk# 2.0 library.
C# (CSharp) Gtk Label.SetPadding - 18 examples found. These are the top rated real world C# (CSharp) examples of Gtk.Label.SetPadding extracted from open source projects. You can rate examples to help us improve the quality of examples.