CustomMultiselectText: Boolean;
CustomMultiselectText: Boolean;
The CustomMultiselectText property determines whether a custom template is used to form component text on multiple selection by attributes.
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: <Name> (Selected n). Where <Name> is an attribute name, n is a number of selected elements. If the property is set to True, the text is formed according to the template set in the CustomMultiselectTextTemplate property.
Executing the example requires a form with the Button1 button and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
MetaAttributesBreadcrumb1.CustomMultiselectText := True;
MetaAttributesBreadcrumb1.CustomMultiselectTextTemplate := "Range: %First-%Last";
End Sub Button1OnClick;
On clicking the button the system sets a template for the DimensionCombo1 component, according to which the component text is formed on multiple selection.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
MetaAttributesBreadcrumbNet1.CtrlBox.CustomMultiselectText := True;
MetaAttributesBreadcrumbNet1.CtrlBox.CustomMultiselectTextTemplate := "Range: %First-%Last";
End Sub;
See also: