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

DropdownMenu.InsertSeparator

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

参数

atIndex应插入分隔线的索引。
subMenuPath添加分隔线的子菜单路径。路径组件由正斜杠(“/”)分隔。

描述

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