Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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