# Sandbox.BaseInventoryComponent.MaxSlots

```csharp
int MaxSlots { get; set; }
```

How many slots this inventory has. Items occupy slots 0..MaxSlots-1.

Declared in [Sandbox.BaseInventoryComponent](/api/Sandbox.BaseInventoryComponent).
Assembly: `Sandbox.Engine`.
