> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/fr/applis/components/surfaces/paper.md).

# Papier

Utilisez le composant New-UDPaper dans PowerShell Universal pour créer des surfaces Paper Material Design avec élévation, coins carrés et couleurs d'arrière-plan personnalisées.

**Dans Material Design, les propriétés physiques du papier sont transposées à l'écran.**

L'arrière-plan d'une application ressemble à la texture plate et opaque d'une feuille de papier, et le comportement d'une application imite la capacité du papier à être redimensionné, mélangé et relié en plusieurs feuilles.

## Paper

```powershell
New-UDPaper -Elevation 0 -Content {} 
New-UDPaper -Elevation 1 -Content {} 
New-UDPaper -Elevation 3 -Content {}
```

## Mise en forme du contenu Paper

Par défaut, le composant Paper utilise le type d'affichage flex pour le contenu à l'intérieur du Paper. Cela peut causer des problèmes avec d'autres types de contenu qui pourraient être stockés dans le Paper. Vous pouvez remplacer le type d'affichage en utilisant le paramètre `-Style`.

```powershell
$m=@'
# Hello

## world
- a
- b
-c
'@

New-UDPaper -Elevation 7 -Children {
   New-UDMarkdown -markdown $m
} -Style @{
   display = 'block'
}
```

## Paper carré

Par défaut, le Paper aura des bords arrondis. Vous pouvez réduire l'arrondi en utilisant un Paper carré.

```powershell
New-UDPaper -Square -Content {}
```

## Paper coloré

Le paramètre `-Style` peut être utilisé pour colorer le Paper. Tout CSS valide peut être inclus dans la table de hachage d'un style.

L'exemple suivant crée un Paper avec un arrière-plan rouge.

```powershell
New-UDPaper  -Content { } -Style @{ 
     backgroundColor = 'red'
}
```

## API

* [New-UDPaper](/powershell-universal/fr/commandes-powershell/new-udpaper.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/fr/applis/components/surfaces/paper.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
