# ParagraphFormat.FrameStyle Property

> Gets or sets the style of the paragraph's frame.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ParagraphFormat.FrameStyle Property
- **704 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/framestyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/framestyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/framestyle-property/llms-full.txt

---

### Description

Gets or sets the style of the paragraph's frame.

### Syntax

```csharp
public FrameStyle FrameStyle { get; set; }
```

```vbnet
Public Property FrameStyle As FrameStyle
```

### Members

| Value | Description |
|---|---|
| Single | The paragraph's frame is drawn with a single line. |
| Double | The paragraph's frame is drawn with a doubled line. |

### Examples

The following example applies paragraph layout to selected report text by using `ParagraphFormat.FrameStyle`.

```csharp
textControl.Text = "First item\nSecond item\nThird item";
textControl.Select(0, textControl.Text.Length);
ParagraphFormat paragraphFormat = textControl.Selection.ParagraphFormat;

paragraphFormat.FrameStyle = TXTextControl.FrameStyle.Single;
Console.WriteLine($"Frame Style used by Paragraph Format: {paragraphFormat.FrameStyle}");

textControl.Selection.ParagraphFormat = paragraphFormat;
```

```vbnet
textControl.Text = "First item" & vbCrLf & "Second item" & vbCrLf & "Third item"
textControl.Select(0, textControl.Text.Length)
Dim paragraphFormat As ParagraphFormat = textControl.Selection.ParagraphFormat

paragraphFormat.FrameStyle = TXTextControl.FrameStyle.Single
Console.WriteLine($"Frame Style used by Paragraph Format: {paragraphFormat.FrameStyle}")

textControl.Selection.ParagraphFormat = paragraphFormat
```

### Remarks

The property's default value is FrameStyle.Single.

The property returns its default value when the text selection contains multiple paragraphs with mixed style. The [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

- **Previous:** [ParagraphFormat.FrameLineWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/framelinewidth-property/llms-full.txt)
- **Next:** [ParagraphFormat.HangingIndent Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/hangingindent-property/llms-full.txt)
