# Set Text Alignment Of Text Tag
Grammar — Set the text alignment of textTag to horizontal horizontally and vertical vertically
Flags —Native
|Action
Sets the alignment of text within the text tag, without changing the tag position. Note that any alignment set using “Set Alignment Of Text Tag” will override this action.
# Arguments
int
[ preset::TextTag ] — Text Tagint
[ preset::AlignmentHorizontal ] — Horizontalint
[ preset::AlignmentVertical ] — Vertical
Returns — void
native void TextTagSetTextAlignment(
int inTag,
int inHoriz,
int inVert,
);
# Related
Category: Text Tag / Formatting
- [F] —
void
— Set Alignment Of Text Tag — ( TextTagSetAlignment ) - [F] —
void
— Set Text Alignment Of Text Tag — ( TextTagSetTextAlignment ) - [F] —
void
— Set Background Border Size Of Text Tag — ( TextTagSetBackgroundBorderSize ) - [F] —
void
— Set Background Image Of Text Tag — ( TextTagSetBackgroundImage ) - [F] —
void
— Set Background Offset Of Text Tag — ( TextTagSetBackgroundOffset ) - [F] —
void
— Set Edge Image Of Text Tag — ( TextTagSetEdgeImage ) - [F] —
void
— Set Color Of Text Tag — ( TextTagSetColor ) - [F] —
void
— Set Enforce Fog Of War Of Text Tag — ( TextTagFogofWar ) - [F] —
void
— Set Visibility Type Of Text Tag — ( TextTagSetFogVisibility ) - [F] —
void
— Set Faded Transparency Of Text Tag — ( TextTagSetFadedTransparency ) - [F] —
void
— Set Font Size Of Text Tag — ( TextTagSetFontSize ) - [F] —
void
— Set Maximum Size Of Text Tag — ( TextTagSetMaxSize ) - [F] —
void
— Show/Hide Background For Text Tag — ( TextTagShowBackground ) - [F] —
void
— Show/Hide Text Shadow For Text Tag — ( TextTagSetTextShadow )
# Examples
# campaigns/liberty.sc2campaign
// L2881
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop)
// L2887
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop)
// L2881
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop)
// L2887
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop)