Text PropertiesDownload PDFSelected SectionSelected Section and Subsection(s)Entire ManualUpdated2026-02-042 minute(s) readLabVIEWAPI ReferenceLabVIEW G Attached ObjectGets or sets the reference to a block diagram object to which a text label is attached. This property only works with free labels on the block diagram.Document BoundsReturns the size required to display the entire text.Document Bounds:HeightReturns the height required to display the entire text.Document Bounds:WidthReturns the width required to display the entire text.Enable HyperlinksAutomatically detects URLs of the form proto://domain, displays them in underlined blue text, and opens them in the default web browser when clicked.FontCluster of font name, size, bold, italic, underline, strikeout.Font:BoldIndicates whether the text is bold.Font:ColorSets the color of the currently selected text. You can use the Selection property to select a subset of a string.Font:ItalicIndicates whether the text is italic.Font:NameFont name. Predefined font names include App Font, Sys Font, and Dlg Font. If you provide an empty string, this property returns an error.Font:SizeFont size.Font:StrikeoutIndicates whether the text is in the strikeout font.Font:UnderlineIndicates whether the text is underlined.JustificationGets and sets the justification of text.LockLocks the label or caption to the owning control, indicator, or terminal. You cannot set this property on text fields that are not labels or captions, such as Boolean text, numeric text, free labels, and so on.Scroll PositionPosition of the scroll box in the scroll bar.SelectionText selection specified in terms of character positions for the beginning of selection (inclusive) and end of selection (not inclusive). If you set the start and end to be the same, LabVIEW inserts a caret into the text.Selection:EndAllows you to select the end point of text in a text string.Selection:StartCharacter position for the beginning of selection (inclusive).Size to Text?Sets whether the size of the text object changes according to the text included. You can write this property only for free labels, control labels, and captions.TextText as displayed in the front panel object. For example, if you set a string control to use Password Display, this property returns the password string, such as ****, not the Normal Display of the string.Text ColorsChanges the foreground and background color of a text string.Text Colors:BG ColorBackground color of text object.Text Colors:Text ColorText color for all fonts in the text.Text OverflowDisplay a gradient overflow visual effect when text gets clipped by the controls.Vertical ArrangementGets and sets the vertical arrangement for the text. You can set the vertical arrangement for labels, captions, and free labels. For free labels, if a vertical scrollbar is visible, this property can only be set to None or Stacked. Setting other values will result in error 1786.
Attached ObjectGets or sets the reference to a block diagram object to which a text label is attached. This property only works with free labels on the block diagram.Document BoundsReturns the size required to display the entire text.Document Bounds:HeightReturns the height required to display the entire text.Document Bounds:WidthReturns the width required to display the entire text.Enable HyperlinksAutomatically detects URLs of the form proto://domain, displays them in underlined blue text, and opens them in the default web browser when clicked.FontCluster of font name, size, bold, italic, underline, strikeout.Font:BoldIndicates whether the text is bold.Font:ColorSets the color of the currently selected text. You can use the Selection property to select a subset of a string.Font:ItalicIndicates whether the text is italic.Font:NameFont name. Predefined font names include App Font, Sys Font, and Dlg Font. If you provide an empty string, this property returns an error.Font:SizeFont size.Font:StrikeoutIndicates whether the text is in the strikeout font.Font:UnderlineIndicates whether the text is underlined.JustificationGets and sets the justification of text.LockLocks the label or caption to the owning control, indicator, or terminal. You cannot set this property on text fields that are not labels or captions, such as Boolean text, numeric text, free labels, and so on.Scroll PositionPosition of the scroll box in the scroll bar.SelectionText selection specified in terms of character positions for the beginning of selection (inclusive) and end of selection (not inclusive). If you set the start and end to be the same, LabVIEW inserts a caret into the text.Selection:EndAllows you to select the end point of text in a text string.Selection:StartCharacter position for the beginning of selection (inclusive).Size to Text?Sets whether the size of the text object changes according to the text included. You can write this property only for free labels, control labels, and captions.TextText as displayed in the front panel object. For example, if you set a string control to use Password Display, this property returns the password string, such as ****, not the Normal Display of the string.Text ColorsChanges the foreground and background color of a text string.Text Colors:BG ColorBackground color of text object.Text Colors:Text ColorText color for all fonts in the text.Text OverflowDisplay a gradient overflow visual effect when text gets clipped by the controls.Vertical ArrangementGets and sets the vertical arrangement for the text. You can set the vertical arrangement for labels, captions, and free labels. For free labels, if a vertical scrollbar is visible, this property can only be set to None or Stacked. Setting other values will result in error 1786.
Attached ObjectGets or sets the reference to a block diagram object to which a text label is attached. This property only works with free labels on the block diagram.Document BoundsReturns the size required to display the entire text.Document Bounds:HeightReturns the height required to display the entire text.Document Bounds:WidthReturns the width required to display the entire text.Enable HyperlinksAutomatically detects URLs of the form proto://domain, displays them in underlined blue text, and opens them in the default web browser when clicked.FontCluster of font name, size, bold, italic, underline, strikeout.Font:BoldIndicates whether the text is bold.Font:ColorSets the color of the currently selected text. You can use the Selection property to select a subset of a string.Font:ItalicIndicates whether the text is italic.Font:NameFont name. Predefined font names include App Font, Sys Font, and Dlg Font. If you provide an empty string, this property returns an error.Font:SizeFont size.Font:StrikeoutIndicates whether the text is in the strikeout font.Font:UnderlineIndicates whether the text is underlined.JustificationGets and sets the justification of text.LockLocks the label or caption to the owning control, indicator, or terminal. You cannot set this property on text fields that are not labels or captions, such as Boolean text, numeric text, free labels, and so on.Scroll PositionPosition of the scroll box in the scroll bar.SelectionText selection specified in terms of character positions for the beginning of selection (inclusive) and end of selection (not inclusive). If you set the start and end to be the same, LabVIEW inserts a caret into the text.Selection:EndAllows you to select the end point of text in a text string.Selection:StartCharacter position for the beginning of selection (inclusive).Size to Text?Sets whether the size of the text object changes according to the text included. You can write this property only for free labels, control labels, and captions.TextText as displayed in the front panel object. For example, if you set a string control to use Password Display, this property returns the password string, such as ****, not the Normal Display of the string.Text ColorsChanges the foreground and background color of a text string.Text Colors:BG ColorBackground color of text object.Text Colors:Text ColorText color for all fonts in the text.Text OverflowDisplay a gradient overflow visual effect when text gets clipped by the controls.Vertical ArrangementGets and sets the vertical arrangement for the text. You can set the vertical arrangement for labels, captions, and free labels. For free labels, if a vertical scrollbar is visible, this property can only be set to None or Stacked. Setting other values will result in error 1786.