# ShapeCollection.AddStyle Enumeration

> Determines the location and size in which a shape is added to the TX Drawing Control. The enumeration contains the following values:

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > ShapeCollection.AddStyle Enumeration
- **635 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection-addstyle/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection-addstyle/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection-addstyle/enumeration/llms-full.txt

---

### Description

Determines the location and size in which a [shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) is [added](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/add-method/llms-full.txt) to the [TX Drawing Control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt). The enumeration contains the following values:

### Syntax

```csharp
public enum ShapeCollection.AddStyle
```

```vbnet
Public Enum ShapeCollection.AddStyle
```

### Members

| Member | Value | Description |
|---|---|---|
| Fill | 0 | The shape fills the complete control, no matter which [location](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/location-property/llms-full.txt) and [size](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/size-property/llms-full.txt) was defined before. |
| MouseCreation | 2 | The shape is added on the next mouse up handling and gets the bounds which are defined by the previous mouse down click and the following mouse movement. If a considering side value is less than 150 twips, the side gets a length of 1134 twips. |
| None | 1 | No specific style is set. The shape is located at its defined location with its defined size. |

### Examples

The following example selects the Fill value from the Add Style enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.Drawing.ShapeCollection.AddStyle value = TXTextControl.Drawing.ShapeCollection.AddStyle.Fill;
Console.WriteLine($"Using Add Style: {value}");
```

```vbnet
Dim value As TXTextControl.Drawing.ShapeCollection.AddStyle = TXTextControl.Drawing.ShapeCollection.AddStyle.Fill
Console.WriteLine($"Using Add Style: {value}")
```

---

## Nearby

- **Previous:** [ShapeCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/add-method/llms-full.txt)
- **Next:** [ShapeCollection.Insert Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/insert-method/llms-full.txt)
