RightToLeft Property
Description
Gets or sets a value indicating whether the TabWorkspace 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 TabWorkspace (Tab Order, Tab Location, Tab Navigation Buttons), including tab client components (Horizontal ScrollBars, Text reading alignment, etc.), are displayed from right to left.
IMPORTANT: If you enable tab grouping, RightToLeft must be set after EnableGroups is called.
Example
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 you do not have to enable tab grouping.
' Set the CommandBars to RTL mode
CommandBars.RightToLeft = False
' 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.