语言English
  • C#

VisualElement.contentRect

public Rect contentRect;

描述

元素内容区域的矩形,位于元素的本地空间中。(只读)

在 UI 工具包使用的盒模型中,内容区域指的是显示文本和图像的内部矩形。它不包括边框和填充。


Did you find this page useful? Please give it a rating: