UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTextEditHelper Class Reference

#include <TextEditHelper.h>

Static Public Member Functions

static float GetFontHeight (const FSlateFontInfo &FontInfo)
 
static float CalculateCaretWidth (const float FontMaxCharHeight)
 
static bool VerifyTextLength (const FText &InText, FText &OutErrorMessage, int32 LengthToCheck)
 

Detailed Description

Static helper functions

Member Function Documentation

◆ CalculateCaretWidth()

float FTextEditHelper::CalculateCaretWidth ( const float  FontMaxCharHeight)
static

Calculate the width of the caret

Parameters
FontMaxCharHeightThe height of the font to calculate the caret width for
Returns
The width of the caret (might be clamped for very small fonts)

◆ GetFontHeight()

float FTextEditHelper::GetFontHeight ( const FSlateFontInfo FontInfo)
static

Gets the height of the largest character in the font

Returns
The fonts height

◆ VerifyTextLength()

bool FTextEditHelper::VerifyTextLength ( const FText InText,
FText OutErrorMessage,
int32  LengthToCheck 
)
static

The documentation for this class was generated from the following files: