SelectedTextColor||doc136531

September 20, 2022

Format

Checkbox.SelectedTextColor

Describe

The text color when the check box is selected.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Checkbox control for testing according to the name
local checkbox = APIRootWindow.APICheckbox

--Set the text color of the checked state of the checkbox control
checkbox.SelectedTextColor = Color3.Red