Class GPALLabel
A GPAL lable instantiated with GPAL.Label for use on GPAL forms.
Callback EventHandler is invoked on the GPALLabel.WindowsControl.Clicked event.
Labels autosize to fit the form.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive.GPALForm
Assembly: GPAL.dll
Syntax
public class GPALLabel : GPALControl, IAllowControlSettingsAndFontSettings, IAllowControlSettings, IAllowFontSettings
Examples
Font font = new Font("Times New Roman", 12.0f);
static GPALLabel gPalLabel = (GPALLabel)GPAL.Label
.WithText("Form Tester")
.WithFont(font)
.WithAlignment(ContentAlignment.TopCenter);
GPALForm myForm = (GPALForm)GPAL.Form
.WithTitle("Simple Form Test")
.WithFormControl(gPalLabel)
.ShowDialog();