The With statement enables the user to avoid using complex qualified identifiers to access object fields, properties, and methods. Use the With statement to specify the qualified identifiers synonyms active in the block, which is restricted by the defined statement.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
With lbl: Label1.Font Do
lbl.Bold := True;
lbl.Color := GxColor.FromName("Red");
lbl.Size := 15;
lbl.Underline := True;
End With;
End Sub Button1OnClick;
See also: