TDrawLabel - Exemples

TDrawLabel = class (TDrawObject)Interface de TDrawLabelExemples de TDrawLabel
uses UGraphicalViews;

var lbl:=TDrawLabel.CreateNew('test1');
lbl.XPos:=100;
lbl.YPos:=100;
lbl.XSize:=300;
lbl.YSize:=300;
lbl.Label:='Non Conforme !';
lbl.Rotation:=25; // texte pivoté de 25°
lbl.SetFontName('Times New Roman'); // police Times New Roman
lbl.SetFontSize(20); // taille 20
lbl.Color:=RGBToColor(255, 0, 0); // rouge
lbl.SetFontBold(True); // gras
lbl.SetFontItalic(True); // italique
lbl.SetFontUnderline(True); // souligné