# DListView\_Column:SetWidth

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DListView_Column:SetWidth
- **Çeviri tarihi:** 2025-09-08

```lua
DListView_Column:SetWidth( number width )
```

## Açıklama

Panonun genişliğini ayarlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **width**: Pano genişliğini belirleyecek sayı değeri.

### Örnek

Bir DListView oluşturur ve bunu, aynı anda yalnızca biri seçilebilen iki sütun ve iki öğeyle doldurur.

İlk sütunun genişliği 15'tir. İkinci sütunun genişliği 350'dir.

```lua
local Frame = vgui.Create( "DFrame" )
Frame:SetSize( 500, 500 )
Frame:Center()
Frame:MakePopup()

local SimpleList = vgui.Create( "DListView", Frame )
SimpleList:Dock( FILL )
SimpleList:SetMultiSelect( false )

SimpleList:AddColumn( "Column 1" ):SetWidth(15)
SimpleList:AddColumn( "Column 2" ):SetWidth(350)

SimpleList:AddLine( "First", "Column" )
SimpleList:AddLine( "Second", "Column" )
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/da9540302fdec018978b.png)

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/DListView_Column:SetWidth
