Show / Hide Table of Contents

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.

Inheritance
System.Object
GPALControl
GPALLabel
Implements
IAllowControlSettingsAndFontSettings
IAllowControlSettings
IAllowFontSettings
Inherited Members
GPALControl.FontType
GPALControl.TextAlignment
GPALControl.AutoSize
GPALControl.ControlAlignment
GPALControl.WithFont(Font)
GPALControl.WithTextAlignment(ContentAlignment)
GPALControl.WithAlignment(ContentAlignment)
GPALControl.WithAutoSize(Boolean)
GPALControl.Text
GPALControl.Name
GPALControl.Tag
GPALControl.WindowsControl
GPALControl.ControlType
GPALControl.WithShortcutKey(Keys)
GPALControl.WithCallback(EventHandler)
GPALControl.WithName(String)
GPALControl.WithTag(Object)
GPALControl.WithText(String)
GPALControl.ToGPALObject()
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();

Implements

IAllowControlSettingsAndFontSettings
IAllowControlSettings
IAllowFontSettings
In This Article
Back to top Generated by DocFX