# ToolBarButtonSizeMode

URL: https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbuttonsizemode

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

Specifies how a [ToolBarButton](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) in aToolBar control behaves when the control resizes.

- C# - VB.NET

```csharp
public enum ToolBarButtonSizeMode : Enum
```

```visual
Public Enum ToolBarButtonSizeMode As [Enum]
```

## Fields

| Name | Description | **Auto** | The width of the [ToolBarButton](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) is determined by its contents. | **Fill** | The [ToolBarButton](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) uses the available space on theToolBar (the space not taken up by other buttons whose [SizeMode](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton#sizemode) property is set to [Auto](/api/wisej.web/containers/toolbar/wisej.web.toolbarbuttonsizemode#fields) ) and shares it with other buttons that have their [SizeMode](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton#sizemode) property set to [Fill](/api/wisej.web/containers/toolbar/wisej.web.toolbarbuttonsizemode#fields) . 

## Used By

| Name | Description | [ToolBarButton.SizeMode](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton#sizemode) | Returns or sets how the toolbar button is resized. | [ToolBarButtonExtensions.SizeMode](/api/wisej.web.markup/extensions/wisej.web.markup.toolbarbuttonextensions#sizemode-toolbarbutton-sizemode) | Sets the size mode of the [ToolBarButton](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton) .
