[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Menus' (#lcl)

# TMenu.AutoLineReduction

Indicates the method used to perform line reduction for the menu and optionally for its child Items.

## Declaration

Source position: menus.pp line 425

`published property TMenu.AutoLineReduction : TMenuAutoFlag read GetAutoLineReduction write SetAutoLineReduction default maAutomatic;`

## Description

AutoLineReduction is a TMenuAutoFlag property which controls if redundant separators on the menu or its child Items are automatically hidden. Line reduction causes leading, trailing, or adjacent menu separators to be hidden.

maAutomatic causes redundant separators to be automatically removed for the menu. The default value for the property is maAutomatic and causes the line reduction top be performed automatically. Use maManual if line reduction is performed only when the RethinkLines method in a child menu item is explicitly called.

See TMenuAutoFlag for more information about the valid values for the property.

The value in AutoLineReduction is used by child menu Items when their AutoLineReduction property is set to maParent or maAutomatic.

## Version info

Added in LCL version 4.0.

## See also

TMenu.AutoLineReduction |  | Indicates the method used to perform line reduction for the menu and optionally for its child Items.
TMenu.Items |  | Contains the menu items displayed on the menu.
TMenuItem.AutoLineReduction |  | Indicates the method used to perform line reduction for the menu item and optionally for its child Items.
TMenuAutoFlag |  | Range type which represents the valid TMenuItemAutoFlag values for TMenu instances.
TMenuItemAutoFlag |  | Represents line reduction modes available for menu items.