windowsforms-devexpress-dot-xtraeditors-dot-spinedit-04dc06a1.md
Gets or sets a spin editor’s value.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Bindable(false)]
[DefaultValue(0)]
[DXCategory("Appearance")]
public virtual decimal Value { get; set; }
<DefaultValue(0)>
<Bindable(False)>
<DXCategory("Appearance")>
Public Overridable Property Value As Decimal
| Type | Default | Description |
|---|---|---|
| Decimal | 0 |
A decimal value representing the editor’s value.
|
The Value property is nothing but a decimal representation of the SpinEdit.EditValue property value. Use it when you need to obtain the editor’s edit value in decimal format.
Assigning this property a new value raises the RepositoryItem.EditValueChanging event.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Value 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.
colorEdit2.Color = userColor2;
percentLevelsEdit.Value = Convert.ToDecimal(percentMarksCount);
absoluteLevelsEdit.Value = Convert.ToDecimal(absoluteMarksCount);
cpeColor.Color = Color.FromArgb(180, Color.Silver);
seFontSize.Value = 30;
ceRepeat.Checked = true;
winforms-grid-customize-cell-color/CS/Form1.cs#L37
{
_CellColorHelper.SetCellColor(Convert.ToInt32(spinEdit1.Value), gridView1.Columns[Convert.ToInt32(spinEdit2.Value)], colorEdit1.Color);
}
private void UpdateRows() {
xpView1.TopReturnedRecords = (int)spinEdit1.Value;
xpView1.Reload();
winforms-treelist-show-checkboxes-for-specific-level/CS/WindowsApplication1/Form1.cs#L39
{
hideCheckBoxHelper.Level = Convert.ToInt16(spinEdit1.Value);
}
colorEdit2.Color = userColor2
percentLevelsEdit.Value = Convert.ToDecimal(percentMarksCount)
absoluteLevelsEdit.Value = Convert.ToDecimal(absoluteMarksCount)
cpeColor.Color = Color.FromArgb(180, Color.Silver)
seFontSize.Value = 30
ceRepeat.Checked = True
Private Sub UpdateRows()
xpView1.TopReturnedRecords = CInt(Math.Truncate(spinEdit1.Value))
xpView1.Reload()
winforms-grid-customize-cell-color/VB/Form1.vb#L34
Private Sub simpleButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
_CellColorHelper.SetCellColor(Convert.ToInt32(spinEdit1.Value), gridView1.Columns(Convert.ToInt32(spinEdit2.Value)), colorEdit1.Color)
End Sub
winforms-treelist-show-checkboxes-for-specific-level/VB/WindowsApplication1/Form1.vb#L38
Private Sub spinEdit1_EditValueChanged(ByVal sender As Object, ByVal e As EventArgs)
hideCheckBoxHelper.Level = Convert.ToInt16(spinEdit1.Value)
End Sub
See Also