Share via


IManagementUIService.RightToLeftLayout Property

Definition

Gets a value indicating whether right-to-left mirror placement is enabled.

public:
 property bool RightToLeftLayout { bool get(); };
public bool RightToLeftLayout { get; }
member this.RightToLeftLayout : bool
Public ReadOnly Property RightToLeftLayout As Boolean

Property Value

true if right-to-left mirror placement is turned on; otherwise, false.

Examples

The following example implements this method.

class MyUI_Srvc : IManagementUIService, IDisposable {

    private IDictionary _styles;
    private IManagementFrameHost _owner;
    private Stack<IWin32Window> _curWin;
    private ManagementUIColorTable _colourTbl;

    private object _currentProgressToken;
    private bool _rightToLeft; 
public MyUI_Srvc(IWin32Window ownerWindow, IManagementFrameHost owner) {

    _owner = owner;

    _curWin = new Stack<IWin32Window>();
    _curWin.Push(ownerWindow);

    SystemEvents.DisplaySettingsChanged +=
        new EventHandler(this.OnSystemSettingChanged);
    SystemEvents.InstalledFontsChanged +=
        new EventHandler(this.OnSystemSettingChanged);
    SystemEvents.UserPreferenceChanged +=
        new UserPreferenceChangedEventHandler(this.OnUserPreferenceChanged);

    _rightToLeft = bool.Parse("RightToLeftLayout");
} 
public bool RightToLeftLayout {
    get {
        return _rightToLeft;
    }
} 

Applies to