# InputFormat.FrameFillColor Property

> Gets or sets the color used to display the frame fill color at the current input position. If text is selected, the property specifies the fill color of the whole selected text. A background color can be set for table cells and paragraphs. If the fill color is transparent, a TextControl uses the control's background color.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > InputFormat.FrameFillColor Property
- **639 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inputformat/framefillcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inputformat/framefillcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inputformat/framefillcolor-property/llms-full.txt

---

### Description

Gets or sets the color used to display the frame fill color at the current input position. If text is selected, the property specifies the fill color of the whole selected text. A background color can be set for table cells and paragraphs. If the fill color is transparent, a TextControl uses the control's background color.

### Syntax

```csharp
public Color? FrameFillColor { get; set; }
```

```vbnet
Public Property FrameFillColor As Color?
```

### Examples

The following example changes the formatting applied to text entered at the end of a document by using `InputFormat.FrameFillColor`.

```csharp
textControl.Text = "Project summary";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
InputFormat inputFormat = textControl.InputFormat;

inputFormat.FrameFillColor = System.Drawing.Color.LightSteelBlue;
if (inputFormat.FrameFillColor != null)
{
    Console.WriteLine("Input Format: Frame Fill Color is available.");
}
```

```vbnet
textControl.Text = "Project summary"
textControl.InputPosition = New InputPosition(textControl.Text.Length)
Dim inputFormat As InputFormat = textControl.InputFormat

inputFormat.FrameFillColor = System.Drawing.Color.LightSteelBlue
If inputFormat.FrameFillColor IsNot Nothing Then
    Console.WriteLine("Input Format: Frame Fill Color is available.")
End If
```

### Remarks

The property returns null when the text selection contains multiple table cells or paragraphs with mixed colors.

---

## Nearby

- **Previous:** [InputFormat.FontSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inputformat/fontsize-property/llms-full.txt)
- **Next:** [InputFormat.FrameLineColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inputformat/framelinecolor-property/llms-full.txt)
