Vcl.Menus.TMenuItem.RethinkLines

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RethinkLines: Boolean;

C++

bool __fastcall RethinkLines();

Properties

Type Visibility Source Unit Parent
function public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Removes superfluous separator lines from the Items property array.

Call RethinkLines to remove superfluous separators from the items in the Items property and in any submenu of those items. RethinkLines removes separators that appear at the very beginning or end of a submenu and separators that immediately follow another separator.

RethinkLines lets a menu remove superfluous separators when the AutoLineReduction property is false. For any menu or submenu that has AutoLineReduction set to true, this adjustment occurs automatically.

RethinkLines returns true if RethinkLines removed any menu items, false otherwise.

See Also