Dynamic Label

The Dynamic Label is a control who’s label text can be set by commands from a connected device.

Design-time Properties for the Dynamic Label control
Property Description
Text The current value of the text displayed
TextAlign Sets the position of the text within the control rectangle
AutoSize The label is resized automatically to fit its current value
Run-time Properties for the Dynamic Label control
Name Access Type Description
Name Read only string The name of the control
Text Read/write string The current value of the text label
TextLength Read only int Gets the length of the label text
Run-time Methods for the Dynamic Label control
Name Returns Description
FixedLengthText(int Length) string Returns the first Length characters from the label value. If the value is shorter than Length spaces (‘ ‘) will be added to the end until it is exactly Length characters long.
FixedLengthText(int Length, string Alignment) string Returns the first Length characters from the label value. If the value is shorter than Length spaces (‘ ‘) will be added to the value until it is exactly Length characters long. Spaces are added to the start or end of the value when Alignment is Right or Left. If Alignment is Center an equal number of spaces is added to the start and end of the value.
FixedLengthText(int Length, string Alignment, char Padding) string Returns the first Length characters from the label value. If the value is shorter than Length the Padding character will be added to the value until it is exactly Length characters long. The Padding character is added to the start or end of the value when Alignment is Right or Left. If Alignment is Center an equal number of Padding characters is added to the start and end of the value

This control also supports all the common run-time properties.

Start typing and press Enter to search