界面 / MenuPlacement
MenuPlacement Enumeration
菜单呼出位置枚举
Table of contents
Enumeration Members
AboveAnchor = 6 |
---|
AboveRightAnchor = 8 |
BelowAnchor = 0 |
BelowRightAnchor = 2 |
Center = 10 |
CenteredAboveAnchor = 7 |
CenteredBelowAnchor = 1 |
ComboBox = 3 |
ComboBoxRight = 4 |
MatchBottomLeft = 12 |
MenuLeft = 9 |
MenuRight = 5 |
MousePosition = 13 |
RightLeftCenter = 11 |
Enumeration Members
AboveAnchor
• AboveAnchor = 6
将菜单直接放置在锚点上方,没有过渡效果
AboveRightAnchor
• AboveRightAnchor = 8
将菜单放置在锚点的上方,锚点与内容的右侧对齐
BelowAnchor
• BelowAnchor = 0
将菜单放在锚点正下方
BelowRightAnchor
• BelowRightAnchor = 2
将菜单直接放置在锚点下方,锚点与内容的右侧对齐
Center
• Center = 10
将菜单的中心放置在菜单锚点的中心点之上
CenteredAboveAnchor
• CenteredAboveAnchor = 7
将菜单放在锚点正上方,没有过渡效果
CenteredBelowAnchor
• CenteredBelowAnchor = 1
将菜单放在锚点正中间
ComboBox
• ComboBox = 3
将菜单放在锚点正下方,并将其宽度与锚点内容相匹配
ComboBoxRight
• ComboBoxRight = 4
将菜单放在锚点正下方,并将其宽度与锚点内容相匹配。如果宽度溢出,则与锚点右边缘对齐
MatchBottomLeft
• MatchBottomLeft = 12
将菜单的左下角直接放在菜单锚点左下角的上方
MenuLeft
• MenuLeft = 9
将菜单放置在锚点左侧
MenuRight
• MenuRight = 5
将菜单放置在锚点右侧
MousePosition
• MousePosition = 13
鼠标位置
RightLeftCenter
• RightLeftCenter = 11
将菜单的垂直中心放在左侧,将菜单锚点的垂直中心放在右侧