Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VScrollBar

繼承: ScrollBar < Range < Control < CanvasItem < Node < Object

垂直捲動條,從頂部(最小)滾動到底部(最大)。

說明

垂直捲動條,通常用於為超出控制項可見高度的內容進行導覽。這是基於 Range 的控件,從頂部(最小)滾動到底部(最大)。注意,滾動方向和 VSlider 相反。

屬性

BitField[SizeFlags]

size_flags_horizontal

0 (overrides Control)

BitField[SizeFlags]

size_flags_vertical

1 (overrides Control)

主題屬性

int

padding_left

0

int

padding_right

0


主題屬性說明

int padding_left = 0 🔗

Padding between the left of the ScrollBar.scroll element and the ScrollBar.grabber.

Note: To apply vertical padding, modify the top/bottom content margins of ScrollBar.scroll instead.


int padding_right = 0 🔗

Padding between the right of the ScrollBar.scroll element and the ScrollBar.grabber.

Note: To apply vertical padding, modify the top/bottom content margins of ScrollBar.scroll instead.