windowsforms-devexpress-dot-xtraeditors-dot-spinedit-027487ae.md
Gets or sets the editor’s value.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
public override object EditValue { get; set; }
<Browsable(False)>
Public Overrides Property EditValue As Object
| Type | Description |
|---|---|
| Object |
An object representing the editor’s value.
|
The EditValue property contains the value edited by a spin edit control. If you need to obtain the edit value’s equivalent decimal representation, use the SpinEdit.Value property.
Changing the EditValue property value at runtime raises the RepositoryItem.EditValueChanging event.
The following code snippets (auto-collected from DevExpress Examples) contain references 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.
XtraReport labelReport = builder.GenerateLabelReport(
Convert.ToSingle(LabelWidthSpinEdit.EditValue),
Convert.ToSingle(LabelHeightSpinEdit.EditValue),
winforms-memo-editor-advanced-mode/CS/MemoEditSample/Views/DemoView.cs#L32
fluent.SetBinding(seLinesCount, se => se.EditValue, x => x.CustomLinesCount);
fluent.SetBinding(seLineLength, se => se.EditValue, x => x.LineLength);
private void button1_Click(object sender, EventArgs e) {
XtraReport rep = PivotReportGenerator.GenerateReport(pivotGridControl1, ((ReportGeneratorType)radioGroup1.EditValue), Convert.ToInt32(spinEdit1.EditValue), checkEdit2.Checked);
rep.ShowPreviewDialog();
winforms-buttonedit-customize-button-paddings/CS/ButtonEditWithPadding/Form1.cs#L74
{
Padding buttonPadding = new Padding(Convert.ToInt32(((SpinEdit)sender).EditValue));
paddingButtonEdit1.Properties.Padding = buttonPadding;
winforms-grid-toggle-row-visibility/CS/WindowsApplication1/Form1.cs#L45
EditorButton button = spinEdit1.Properties.Buttons[1];
button.Enabled = !(spinEdit1.EditValue == null);
button.Caption = rowVisibilityHelper1.IsRowInvisible(GetButtonEditValue()) ? "Show" : "Hide";
Dim builder As New CustomLabelReportBuilder()
Dim labelReport As XtraReport = builder.GenerateLabelReport(Convert.ToSingle(LabelWidthSpinEdit.EditValue), Convert.ToSingle(LabelHeightSpinEdit.EditValue), Convert.ToSingle(VerticalPitchSpinEdit.EditValue), Convert.ToSingle(HorizontalPitchSpinEdit.EditValue), DirectCast(UnitComboBox.EditValue, DevExpress.Drawing.DXGraphicsUnit), Convert.ToSingle(BottomMarginSpinEdit.EditValue), Convert.ToSingle(TopMarginSpinEdit.EditValue), Convert.ToSingle(LeftMarginSpinEdit.EditValue), Convert.ToSingle(RightMarginSpinEdit.EditValue), Convert.ToInt32(lookUpPaperType.EditValue))
Return labelReport
winforms-memo-editor-advanced-mode/VB/MemoEditSample/Views/DemoView.vb#L35
fluent.SetBinding(seLinesCount, Function(se) se.EditValue, Function(x) x.CustomLinesCount)
fluent.SetBinding(seLineLength, Function(se) se.EditValue, Function(x) x.LineLength)
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim rep As XtraReport = GenerateReport(pivotGridControl1, CType(radioGroup1.EditValue, ReportGeneratorType), Convert.ToInt32(spinEdit1.EditValue), checkEdit2.Checked)
rep.ShowPreviewDialog()
winforms-buttonedit-customize-button-paddings/VB/ButtonEditWithPadding/Form1.vb#L70
Private Sub spinEdit1_EditValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles spinEdit1.EditValueChanged
Dim buttonPadding As New Padding(Convert.ToInt32(DirectCast(sender, SpinEdit).EditValue))
paddingButtonEdit1.Properties.Padding = buttonPadding
winforms-grid-toggle-row-visibility/VB/WindowsApplication1/Form1.vb#L42
Dim button As EditorButton = spinEdit1.Properties.Buttons(1)
button.Enabled = Not(spinEdit1.EditValue Is Nothing)
If rowVisibilityHelper1.IsRowInvisible(GetButtonEditValue()) Then
See Also