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

DropdownMenu.InsertSeparator

切换到手册
public void InsertSeparator (string subMenuPath, int atIndex);

参数

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

描述

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