FSlateEditableTextLayout::SetEditableText

Sets the current editable text for this text block Note: Doesn't update the value of BoundText, nor does it call OnTextChanged

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateEditableTextLayout.h

Include

#include "Widgets/Text/SlateEditableTextLayout.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Text/SlateEditableTextLayout.cpp

Syntax

bool SetEditableText
(
    const FText & TextToSet,
    const bool bForce
)

Remarks

Sets the current editable text for this text block Note: Doesn't update the value of BoundText, nor does it call OnTextChanged

Returns

true if the text was updated, false if the text wasn't update (because it was already up-to-date)

Parameters

Parameter

Description

TextToSet

The new text to set in the internal TextLayout

bForce

True to force the update, even if the text currently matches what's in the TextLayout

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss