Skip to content

RightToLeft Property

Description

Gets or sets a value indicating whether the CommandBars elements are aligned to support locales using right-to-left fonts.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property RightToLeft() As Boolean

Remarks

The RightToLeft property is used for international applications where the language is written from right to left, such as Hebrew or Arabic. When you display these languages, not only must the text flow in the reverse direction from the English language, but also the visual alignment of control elements must be reversed. When this property is set to true, control elements in the CommandBars (Button Order, Menu Order, Menu Alignment, ToolBar Alignment, etc.) are displayed from right to left.

IMPORTANT: If you are using the TabWorkspace and enable tab grouping, TabWorkspace.RightToLeft must be set after EnableGroups is called.

Example

RTL CommandBars Mode (Visual Basic)

This sample illustrates how to enable RTL mode for the CommandBars and TabWorkspace. Notice that RTL mode for the TabWorkspace must be enabled after enabling groups. Note that you do not have to enable tab grouping.

' Set the CommandBars to RTL mode  
CommandBars.RightToLeft = True  

' Show TabWorkspace  
CommandBars.ShowTabWorkspace(True)  

' Enable Tab Grouping  
CommandBars.TabWorkspace.EnableGroups  

' Set RTL mode for the TabWorkspace  
CommandBars.TabWorkspace.RightToLeft = True  

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.