IBindingFloatSlider.MaxValueDefined

Syntax

MaxValueDefined: Boolean;

Description

The MaxValueDefined property determines whether binding string contains the MAXVAL parameter.

Comments

Available values:

Example

This procedure checks binding string passed as the SourceBinding input parameter.

Sub FloatSliderBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    Slider: IBindingFloatSlider;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "FloatSlider" Then
        Slider := Binding As IBindingFloatSlider;
        //Check if there is the VALUE parameter
        If Slider.ValueDefined Then
            Debug.WriteLine("Default value (VALUE): " + Slider.Value.ToString);
        End If;
        //Check if the MINVAL parameter is present
        If Slider.MinValueDefined Then
            Debug.WriteLine("Minimum value (MINVAL): " + Slider.MinValue.ToString);
        End If;
        //Check if the MAXVAL parameter is present
        If Slider.MaxValueDefined Then
            Debug.WriteLine("The maximum value (MAXVAL): " + Slider.MaxValue.ToString);
        End If;
        //Check if the STEP value is present
        If Slider.StepDefined Then
            Debug.WriteLine("Value change step (STEP): " + Slider.Step_.ToString);
        End If;
    End If;
End Sub FloatSliderBindingInfo;

If binding string passed as an input parameter corresponds to value editor presented as real values slider, after executing the example the console window displays the slider parameters.

See also:

IBindingFloatSlider