The Height
property of the GraphicsItem
class represents the vertical dimension of the graphics item in the editor. It is a single-precision floating-point value that specifies the height of the item.
The Height
property of the GraphicsItem
class represents the vertical dimension of the graphics item in the editor. It is a single-precision floating-point value that specifies the height of the item.
Use the Height
property to get or set the height of a GraphicsItem
instance. This property is useful when you need to adjust the size of the item or when you need to retrieve its current height for layout calculations or rendering purposes.
// Example of setting the height of a GraphicsItem GraphicsItem item = new GraphicsItem(); item.Height = 150.0f; // Example of getting the height of a GraphicsItem float currentHeight = item.Height; // Use the height in a layout calculation float newHeight = currentHeight + 20.0f; item.Height = newHeight;