---
title: "right(columns:)"
framework: os
role: symbol
role_heading: Type Method
path: "os/oslogstringalignment/right(columns:)"
---

# right(columns:)

Aligns the value on the right side of a column with the specified width.

## Declaration

```swift
static func right(columns: @autoclosure @escaping () -> Int) -> OSLogStringAlignment
```

## Parameters

- `columns`: The width of the item in characters.

## Return Value

Return Value A string-alignment structure with the specified value.

## See Also

### Getting a Custom String Alignment

- [left(columns:)](os/oslogstringalignment/left(columns:).md)
