Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UTextLayoutWidget
- UMultiLineEditableTextBox
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/MultiLineEditableTextBox.h |
| Include | #include "Components/MultiLineEditableTextBox.h" |
Syntax
UCLASS (Meta=(DisplayName="Text Box (Multi-Line)"), MinimalAPI)
class UMultiLineEditableTextBox : public UTextLayoutWidget
Remarks
Allows a user to enter multiple lines of text
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | AllowContextMenu | Whether the context menu can be opened | |
| bool | bIsReadOnly | Sets the Text as Readonly to prevent it from being modified interactively by the user | |
| FText | HintText | Hint text that appears when there is no text in the text box | |
| FGetText | HintTextDelegate | A bindable delegate to allow logic to drive the hint text of the widget | |
| FText | K2_Cache_HintText | ||
| TSharedPtr< SMultiLineEditableTextBox > | MyEditableTextBlock | ||
| FOnMultiLineEditableTextBoxChangedEvent | OnTextChanged | Called whenever the text is changed programmatically or interactively by the user | |
| FOnMultiLineEditableTextBoxCommittedEvent | OnTextCommitted | Called whenever the text is committed. | |
| FText | Text | The text content for this editable text box widget | |
| EVirtualKeyboardDismissAction | VirtualKeyboardDismissAction | What action should be taken when the virtual keyboard is dismissed? | |
| FVirtualKeyboardOptions | VirtualKeyboardOptions | Additional options to be used by the virtual keyboard summoned from this widget | |
| FEditableTextBoxStyle | WidgetStyle | The style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMultiLineEditableTextBox
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FText | GetHintText () |
Returns the Hint text that appears when there is no text in the text box | |
| bool | Return true when this text cannot be modified interactively by the user | ||
| FText | GetText () |
Provide a alternative mechanism for error reporting. Gets the widget text | |
| void | HandleOnTextChanged
(
const FText& Text |
||
| void | HandleOnTextCommitted
(
const FText& Text, |
||
| FText | |||
| void | Serialize
(
FArchive& Ar |
||
| void | SetError
(
FText InError |
||
| void | SetForegroundColor
(
FLinearColor color |
||
| void | SetHintText
(
FText InHintText |
Sets the Hint text that appears when there is no text in the text box | |
| void | SetIsReadOnly
(
UPARAM(DisplayName="ReadyOnly") bool bReadOnly |
Sets the Text as Readonly to prevent it from being modified interactively by the user | |
| void | SetText
(
FText InText |
Directly sets the widget text. | |
| void | SetTextStyle
(
const FTextBlockStyle& InTextStyle |
Overridden from UTextLayoutWidget
| Type | Name | Description | |
|---|---|---|---|
| void | OnApplyLineHeightToBottomLineChanged
(
bool InApplyLineHeightToBottomLine |
||
| void | OnAutoWrapTextChanged
(
bool InAutoWrapText |
||
| void | OnJustificationChanged
(
ETextJustify::Type InJustification |
||
| void | OnLineHeightPercentageChanged
(
float InLineHeightPercentage |
||
| void | OnMarginChanged
(
const FMargin& InMargin |
||
| void | OnShapedTextOptionsChanged
(
FShapedTextOptions InShapedTextOptions |
||
| void | OnWrappingPolicyChanged
(
ETextWrappingPolicy InWrappingPolicy |
||
| void | OnWrapTextAtChanged
(
float InWrapTextAt |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | TODO UMG Add Set ReadOnlyForegroundColor TODO UMG Add Set BackgroundColor TODO UMG Add Set Font |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnMultiLineEditableTextBoxChangedEvent | |||
| FOnMultiLineEditableTextBoxCommittedEvent |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FTextBlockStyle | TextStyle_DEPRECATED | The text style |