Back to Devexpress

RepositoryItemDateEdit.TimeEditWidth Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemdateedit-3452f11f.md

latest2.9 KB
Original Source

RepositoryItemDateEdit.TimeEditWidth Property

Gets or sets the width, in pixels, of the edit box in the DateEdit control’s drop-down that allows end-users to edit the time portion of the edit value.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(-1)]
[DXCategory("Appearance")]
public int TimeEditWidth { get; set; }
vb
<DefaultValue(-1)>
<DXCategory("Appearance")>
Public Property TimeEditWidth As Integer

Property Value

TypeDefaultDescription
Int32-1

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

|

Remarks

If the RepositoryItemDateEdit.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 DateEdit control’s drop-down. The RepositoryItemDateEdit.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.

csharp
dateEdit1.Properties.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True;
dateEdit1.Properties.CalendarTimeProperties.Mask.EditMask = "f";
dateEdit1.Properties.TimeEditWidth = 190;
vb
DateEdit1.Properties.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True
DateEdit1.Properties.CalendarTimeProperties.Mask.EditMask = "f"
DateEdit1.Properties.TimeEditWidth = 190

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

See Also

CalendarTimeEditing

RepositoryItemDateEdit Class

RepositoryItemDateEdit Members

DevExpress.XtraEditors.Repository Namespace