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

CalendarControlBase.TimeEditWidth Property

Gets or sets the width, in pixels, of the edit box that allows end-users to edit the time portion of the edit value.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(-1)]
[DXCategory("Layout")]
public int TimeEditWidth { get; set; }

#Property Value

Type Default Description
Int32 -1

An integer value that specifies the width, in pixels, of the time portion edit box.

#Remarks

If the CalendarControlBase.CalendarTimeEditing property is set to true, an end-user can edit the time portion of the edit value using the corresponding edit box in the calendar. The CalendarControlBase.CalendarTimeProperties contain settings related to time editing, such as edit or display mask. For instance, you can enable the full date/time pattern for displaying the time portion. See the code snippet below.

calendarControl1.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True;
calendarControl1.CalendarTimeProperties.Mask.EditMask = "f";
calendarControl1.TimeEditWidth = 190;

The TimeEditWidth property allows you to specify the width of the time portion edit box. See the figure below.

CalendarControl_TimeEditWidth

See Also