RealDocs

UBorder::GetHorizontalAlignment

function UMG Since 4.0
#include "Components/Border.h"
Access: public Specifiers: const

Description

Returns how the border's content is aligned horizontally within the available space.

Caveats & Gotchas

  • Not a UFUNCTION — it's a C++-only accessor; Blueprint graphs read the HorizontalAlignment property directly rather than calling this function.
  • Direct field access to the deprecated HorizontalAlignment property was removed in favor of this getter as of UE 5.1.

Signature

UMG_API EHorizontalAlignment GetHorizontalAlignment() const;

Return Type

EHorizontalAlignment

Example

Read horizontal alignment from C++ C++
EHorizontalAlignment Align = MyBorder->GetHorizontalAlignment();

Tags

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.