ITreeCombo.CustomMultiselectText

Syntax

CustomMultiselectText: Boolean;

Description

The CustomMultiselectText property determines whether a custom template is used to form component text on multiple selection.

Comments

The property is set to False by default, on multiple selection of elements the text displayed in the component is formed automatically and looks as follows: (Total n). Where n is the number of selected elements. If the property is set to True, the text is formed according to the template set in the CustomMultiselectTextTemplate property.

Example

Executing the example requires a form that contains a button and the TreeCombo component named TreeCombo1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    TreeCombo1.CustomMultiselectText := True;
    TreeCombo1.CustomMultiselectTextTemplate := "Range: %First-%Last";
End Sub Button1OnClick;

On clicking the button the system sets a template for the TreeCombo1 component, according to which the component text is formed on multiple selection.

See also:

ITreeCombo