_OlkCommandButton.TextAlign Property
Returns or sets an OlTextAlign constant that specifies how text is aligned in the control. Read/write.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Property TextAlign As OlTextAlign
Get
Set
'Usage
Dim instance As _OlkCommandButton
Dim value As OlTextAlign
value = instance.TextAlign
instance.TextAlign = value
[DispIdAttribute()]
OlTextAlign TextAlign { get; set; }
Property Value
Type: Microsoft.Office.Interop.Outlook.OlTextAlign
Remarks
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.