LanguageEnglish
  • C#

VisualElement.contentRect

public Rect contentRect;

Description

The rectangle of the content area of the element, in the local space of the element. (Read Only)

In the box model used by UI Toolkit, the content area refers to the inner rectangle for displaying text and images. It excludes the borders and the padding.


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