RealDocs

UBorder::SetVerticalAlignment

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

Description

Sets how the border's content is aligned vertically within the space allotted to it.

Caveats & Gotchas

  • Only has a visible effect if the border is given more vertical space than its content actually needs.
  • The direct VerticalAlignment UPROPERTY is deprecated as of 5.1 in favor of this setter.

Signature

UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment)

Parameters

Name Type Description Default
InVerticalAlignment EVerticalAlignment New vertical alignment for the border's content.

Return Type

void

Example

Bottom-align content C++
void UMyUserWidget::BottomAlignBorderContent()
{
    if (MyBorder)
    {
        MyBorder->SetVerticalAlignment(VAlign_Bottom);
    }
}

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.