# Panel:DockPadding

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

```lua
Panel:DockPadding( number paddingLeft, number paddingTop, number paddingRight, number paddingBottom )
```

## Açıklama

Panelin iç kenar boşluğunu (dock padding) ayarlar.

İç kenar boşluğu, alt elemanlar bu elemanın içine yerleştirildiğinde (docked) kenarda bırakılacak ekstra boşluktur.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **paddingLeft**: Üst elemana göre sol iç boşluk.
2. [number](https://gmod.tr/wiki/number) **paddingTop**: Üst elemana göre üst iç boşluk.
3. [number](https://gmod.tr/wiki/number) **paddingRight**: Üst elemana göre sağ iç boşluk.
4. [number](https://gmod.tr/wiki/number) **paddingBottom**: Üst elemana göre alt iç boşluk.

### Örnek

DockMargin ve DockPadding'in etkilerini gösteren örnek.

```lua
local frame = vgui.Create("DFrame")
frame:SetSize(600, 300)
frame:SetTitle("Yerleştirme (Docking) Gösterimi")
frame:Center()
frame:MakePopup(true)

local panel = vgui.Create("DPanel", frame)
panel:DockMargin(10, 20, 30, 40)
panel:DockPadding(40, 30, 20, 10)
panel:Dock(FILL)

local button = vgui.Create("DButton", panel)
button:SetText("Orantısız oranlar!")
button:Dock(FILL)
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/1dffbc9466082f3c9a3b.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/Panel:DockPadding
