Back to Devexpress

LabelControl.LineVisible Property

windowsforms-devexpress-dot-xtraeditors-dot-labelcontrol-aa75cca9.md

latest2.9 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Appearance")]
public bool LineVisible { get; set; }
vb
<DefaultValue(False)>
<DXCategory("Appearance")>
Public Property LineVisible As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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.

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

See Also

Appearance

AutoSizeMode

LineColor

LineLocation

LineOrientation

LineStyle

ShowLineShadow

HAlignment

LabelControl Class

LabelControl Members

DevExpress.XtraEditors Namespace