_OlkCommandButton.TextAlign _OlkCommandButton.TextAlign _OlkCommandButton.TextAlign Property


Returns or sets an OlTextAlign constant that specifies how text is aligned in the control. Read/write.

 property Microsoft::Office::Interop::Outlook::OlTextAlign TextAlign { Microsoft::Office::Interop::Outlook::OlTextAlign get(); void set(Microsoft::Office::Interop::Outlook::OlTextAlign value); };
public Microsoft.Office.Interop.Outlook.OlTextAlign TextAlign { get; set; }
Public Property TextAlign As OlTextAlign

Property Value


The default value is olTextAlignLeft in left-to-right languages such as English.

For the Command Button control, when TextAlign is set to olTextAlignLeft, the left margin is only one pixel from the border of the control.

Applies to