Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

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.

See Also