### Add Label to Form

To add a new Label Control via code, use addNode Method.
Example adding a label at position 350, 400 in the an anchorpane with ID anchorpaneMain.
`Sub Process_Globals
...
Private anchorpaneMain As AnchorPane
...
End Sub`
' Add a new label to the form
`Sub addLabel
Dim labelInfo As Label
labelInfo.Initialize("labelInfo")
labelInfo.Text = "Label Information"
labelInfo.Style = "-fx-font-size: 2.0em; -fx-Font-family: 'Segoe UI Semibold'; -fx-text-fill: Black; -fx-opacity: 1;"
' Add the new label to the achorpane
anchorpaneMain.addNode(labelInfo, 350, 400, -1, -1)
Log("New Label added")
End Sub`

Changed: , Category: Nodes, File: T6C225M1661.htm, ID: 1661