RepositoryItemTimeEdit.TextEditStyle Property

Gets or sets the style in which text is displayed in the time editor's edit box.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(TextEditStyles.Standard)]
public override TextEditStyles TextEditStyle { get; set; }
<DXCategory("Behavior")>
<DefaultValue(TextEditStyles.Standard)>
Public Overrides Property TextEditStyle As TextEditStyles

Property Value

Type Default Description
TextEditStyles

Standard

A TextEditStyles enumeration member specifying the editing style.

Remarks

The TextEditStyle property specifies how the edit region is displayed within a TimeEdit. According to this property value, the editor's edit region can contain buttons plus text representing the time or just buttons only. Members of the TextEditStyles enumeration specify the editing styles possible.

The property is overridden so that a time editor's text region cannot be disabled. The property can only be set to TextEditStyles.Standard or TextEditStyles.HideTextEditor. Setting TextEditStyle to TextEditStyles.DisableTextEditor automatically sets its value to TextEditStyles.Standard.

The image below displays a time editor whose TextEditStyle property was changed from the default TextEditStyles.Standard to TextEditStyles.HideTextEditor.

TimeEdit - TextEditStyle

Changing the TextEditStyle property value raises the RepositoryItem.PropertiesChanged event.

See Also