getpixelposition
获取组件位置(以像素为单位)
说明
pos = getpixelposition(
返回由 c
)c
指定的组件的位置(以像素为单位)。MATLAB® 以四元素向量形式返回位置,以 [left bottom width height]
形式指定组件相对于其父容器的位置和大小。
pos = getpixelposition(
(其中 c
,isrecursive
)isrecursive
为 true
)返回相对于父图窗的组件位置。isrecursive
的默认值为 false
,它返回相对于其直接父容器的位置。
示例
输入参数
详细信息
版本历史记录
在 R2007a 中推出