Vcl.Menus.TMenuItem.NewBottomLine

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NewBottomLine: Integer;

C++

int __fastcall NewBottomLine();

Properties

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

Description

Inserts a separator bar at the end of the Items property array.

Use NewBottomLine to insert a separator bar at the end of the items property array. This is useful when building up submenus dynamically at runtime.

NewBottomLine returns the index of the newly inserted separator item in the Items property array.

Tip: When inserting separator bars at runtime, it is a good idea to set AutoLineReduction to true so that superfluous separators can be automatically removed.

See Also