# SContentSizeFitter

**Membres** 5

|           |                                             |   |
| --------- | ------------------------------------------- | - |
| Fonction  | [SetLayoutHorizontal](#setlayouthorizontal) | – |
| Fonction  | [SetLayoutVertical](#setlayoutvertical)     | – |
| Fonction  | [RefreshLayout](#refreshlayout)             | – |
| Propriété | [Enable](#enable)                           | – |
| Propriété | [GameObject](#gameobject)                   | – |

## Fonctions

### SetLayoutHorizontal

void SetLayoutHorizontal()

Valeurs de retour

`void`

Exemple

**Lua**

```lua
Space.Host.ExecutingObject.ContentSizeFitter.SetLayoutHorizontal()

```

### SetLayoutVertical

void SetLayoutVertical()

Valeurs de retour

`void`

Exemple

**Lua**

```lua
Space.Host.ExecutingObject.ContentSizeFitter.SetLayoutVertical()

```

### RefreshLayout

void RefreshLayout()

Valeurs de retour

`void`

Exemple

**Lua**

```lua
Space.Host.ExecutingObject.ContentSizeFitter.RefreshLayout()

```

## Propriétés

### Enable

bool Enable {get; set; }

Exemple

**Lua**

```lua
Space.Host.ExecutingObject.ContentSizeFitter.Enable = true

```

### GameObject

[SGameObject](/docs/fr/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

Exemple

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.ContentSizeFitter.GameObject

```
