HAlign Property

 

The HAlign property returns or sets the horizontal alignment of text. Returns a MVHTextAlign.

 

Syntax

object.HAlign

object.HAlign = Align

 

Parameter

Type

Description

Align

MVHTextAlign

required; horizontal position relative to the reference point

 

Example 1

This example demonstrates how to return the horizontal alignment of a text string.

 

Debug.Print FontFormat.HAlign

 

Example 2

This example demonstrates how to horizontally center a text string.

 

FontFormat.HAlign = mvTACenter

 

Used by: FontFormat object