Skip to main content
A newer version of this page is available. .

LabelControl.LineVisible Property

Gets or sets whether a line is displayed when the label’s width extends the width of its text.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Appearance")]
public bool LineVisible { get; set; }

Property Value

Type Default Description
Boolean **false**

true to display the line when the label’s width extends the width of its text; otherwise, false.

Remarks

If the LabelControl‘s auto-size feature is disabled the label’s size can exceed the text size. In this instance, a line can be displayed within the label next to its text. Use the LabelControl.AutoSizeMode property to specify or disable auto-size mode and use the LineVisible property to make the line visible. The line’s orientation and position relative to the text are determined by the LabelControl.LineOrientation and LabelControl.LineLocation properties.

LabelControlClass_Line

To specify the text’s appearance settings (alignment options, foreground color, font settings, etc) see the LabelControl.Appearance property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LineVisible property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also