IRibbonIntegerEdit.Value

Fore Syntax

Value: Integer;

Fore.NET Syntax

Value: Integer;

Description

The Value property determines the value set in the control.

Comments

This value must be within the range [MinValue; MaxValue].

Example

Executing the example requires a form, a button named Button1 on it and the Ribbon component named Ribbon1. A tab and a panel are created on the ribbon of the Ribbon1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    RPanel: IRibbonPanel;
    RIntEdit: IRibbonIntegerEdit;
Begin
    RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
    RIntEdit := New RibbonIntegerEdit.Create;
    RPanel.Elements.Add(RIntEdit);
    RIntEdit.MinValue := -100;
    RIntEdit.MaxValue := 100;
    RIntEdit.Value := 10;
End Sub Button1OnClick;

On clicking the button an integer editor is created on the ribbon panel. The current, minimum and maximum values are set for the editor.

See also:

IRibbonIntegerEdit