Back to Devexpress

TrackBarControl.EditValue Property

windowsforms-devexpress-dot-xtraeditors-dot-trackbarcontrol-9ee0a94e.md

latest3.1 KB
Original Source

TrackBarControl.EditValue Property

Gets or sets the editor’s value.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(0)]
public override object EditValue { get; set; }
vb
<Browsable(False)>
<DefaultValue(0)>
Public Overrides Property EditValue As Object

Property Value

TypeDefaultDescription
Object0

An object that represents the editor’s value.

|

Remarks

To obtain the edit value’s equivalent integer representation, use the TrackBarControl.Value property.

The EditValue property’s value can be changed within the range of available values which is specified by the RepositoryItemTrackBar.Minimum and RepositoryItemTrackBar.Maximum properties.

Changing the EditValue property’s value at runtime raises the BaseEdit.EditValueChanging event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-mvvm-best-practices/CS/DataBindingCapabilitiesConverters/DataBindingViaDefaultConvertersFluentAPIUserControl.cs#L37

csharp
var fluent = mvvmContext.OfType<ViewModel>();
fluent.SetBinding(trackBar, e => e.EditValue, x => x.Progress);
fluent.SetBinding(editor, e => e.EditValue, x => x.Progress);

See Also

Minimum

Maximum

Value

TrackBarControl Class

TrackBarControl Members

DevExpress.XtraEditors Namespace