IBindingEditBox.MultiLineDefined

Syntax

MultiLineDefined: Boolean;

Description

The MultiLineDefined property determines whether the MULTILINE parameter is present in binding string.

Comments

If the MultiLineDefined property is set to True, the binding string describing the value editor contains the MULTILINE parameter. The value of this parameter is determined by the MultiLine property.

Example

Sub EditBoxBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    EditBoxBinding: IBindingEditBox;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "EditBox" Then
        EditBoxBinding := Binding As IBindingEditBox;
        //Check if the MAXLENGTH parameter is present
        If EditBoxBinding.MaxLengthDefined Then
            Debug.WriteLine("MAXLENGTH: " + EditBoxBinding.MaxLength.ToString);
        End If;
        //Check if the MULTILINE parameter is present
        If EditBoxBinding.MultiLineDefined Then
            Debug.WriteLine("MULTILINE: " + EditBoxBinding.MultiLine.ToString);
        End If;
        //Check if the READONLY parameter is present
        If EditBoxBinding.ReadOnlyDefined Then
            Debug.WriteLine("READONLY: " + EditBoxBinding.ReadOnly.ToString);
        End If;
        //Check if there is the VALUE parameter
        If EditBoxBinding.ValueDefined Then
            Debug.WriteLine("VALUE: " + EditBoxBinding.Value);
        End If;
    End If;
End Sub EditBoxBindingInfo;

This function checks the binding string passed as the SourceBinding input parameter. If the binding string corresponds to the string value editor, values of the specified parameters will be displayed in the development environment console.

See also:

IBindingEditBox