Experimental: this API is experimental and might be changed or removed in the future.

DropdownMenu.InsertSeparator

Switch to Manual
public void InsertSeparator (string subMenuPath, int atIndex);

Parameters

atIndex应插入分隔线的索引。
subMenuPathThe submenu path where the separator is added. Path components are delimited by forward slashes ('/').

Description

在菜单中添加一条分隔线。分隔线添加在列表中指定索引末尾。