---
title: windowTitlebarLayoutDirection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/windowtitlebarlayoutdirection
---

# windowTitlebarLayoutDirection

The direction the window’s title bar lays text out, either left to right or right to left.

## Declaration

```swift
var windowTitlebarLayoutDirection: NSUserInterfaceLayoutDirection { get }
```

## Discussion

Discussion The layout direction of the window title bar includes the standard window buttons (close, minimize, maximize) and the title for the window. In general, this returns NSUserInterfaceLayoutDirection.rightToLeft if the primary system language is right to left. The layout direction may be right to left even in applications that don’t have a right to left language localization. Refer to this value if the application uses titlebarAppearsTransparent and places controls under the title bar.

## See Also

### Managing Title Bars

- [standardWindowButton(_:for:)](appkit/nswindow/standardwindowbutton(_:for:).md)
- [standardWindowButton(_:)](appkit/nswindow/standardwindowbutton(_:).md)
- [showsToolbarButton](appkit/nswindow/showstoolbarbutton.md)
- [titlebarAppearsTransparent](appkit/nswindow/titlebarappearstransparent.md)
- [toolbarStyle](appkit/nswindow/toolbarstyle-swift.property.md)
- [NSWindow.ToolbarStyle](appkit/nswindow/toolbarstyle-swift.enum.md)
- [titlebarSeparatorStyle](appkit/nswindow/titlebarseparatorstyle.md)
- [NSTitlebarSeparatorStyle](appkit/nstitlebarseparatorstyle.md)
