SelectionColor||doc136528

September 20, 2022

Format

Editbox.SelectionColor

Describe

The selected background color of the input box text.

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

--According to the name to get the Editobox control for testing
local editbox = APIRootWindow.APIEditbox

--Set the background color of the selected part of the input box control
editbox.SelectionColor = Color3.Blue