# ResourceProvider.ImageSourceSettings.StrokeColor Property

> Specifies the stroke color of editable scopes inside the related image. If the property value is null, the default stroke color of the image scope is used. The default value is null.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 27.0
- **Namespace:** `TXTextControl.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms > ResourceProvider.ImageSourceSettings.StrokeColor Property
- **689 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/resourceprovider-imagesourcesettings/strokecolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/resourceprovider-imagesourcesettings/strokecolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/resourceprovider-imagesourcesettings/strokecolor-property/llms-full.txt

---

### Description

Specifies the stroke color of editable scopes inside the related image. If the property value is null, the default stroke color of the image scope is used. The default value is null.

### Syntax

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

```vbnet
Public Property StrokeColor As Color?
```

### Examples

The following example uses `ImageSourceSettings.StrokeColor` to configure stroke color as part of the image source settings workflow. The configured value is checked before the workflow continues.

```csharp
imageSourceSettings.StrokeColor = System.Drawing.Color.LightSteelBlue;
if (imageSourceSettings.StrokeColor != null)
{
    Console.WriteLine("Image Source Settings: Stroke Color is available.");
}
```

```vbnet
imageSourceSettings.StrokeColor = System.Drawing.Color.LightSteelBlue
If imageSourceSettings.StrokeColor IsNot Nothing Then
    Console.WriteLine("Image Source Settings: Stroke Color is available.")
End If
```

### Limitations

This property only affects the color rectangle of images with the following identifiers:

`TXITEM_BackColor`, `TXITEM_TextFrameBackColor`, `TXITEM_DrawingBackColor`, `TXITEM_BarcodeBackColor`, `TXITEM_FrameLineColor`, `TXITEM_DrawingLineColor`, `TXITEM_BarcodeForeColor` and `TXITEM_PageColor` when using the ResourceProvider.GetLargeIcon method.

`TXITEM_BackColor`, `TXITEM_TableBackColor`, `TXITEM_TextFrameBackColor`, `TXITEM_DrawingBackColor`, `TXITEM_BarcodeBackColor`, `TXITEM_FrameLineColor`, `TXITEM_PageLineColor`, `TXITEM_TableLineColor`, `TXITEM_DrawingLineColor`, `TXITEM_BarcodeForeColor`, `TXITEM_PageColor`, `TXITEM_TextBackColor`, `TXITEM_XAxisLineColor`, `TXITEM_XAxisMajorGridlinesColor`, `TXITEM_XAxisMinorGridlinesColor`, `TXITEM_YAxisLineColor`, `TXITEM_YAxisMajorGridlinesColor`, `TXITEM_YAxisMinorGridlinesColor`, `TXITEM_TextColor`, `TXITEM_LegendColor`, `TXITEM_XAxisLabelsColor`, `TXITEM_YAxisLabelsColor`, `TXITEM_ChartTitleColor`, `TXITEM_XAxisTitleColor` and `TXITEM_YAxisTitleColor` when using the ResourceProvider.GetSmallIcon method.

---

## Nearby

- **Previous:** [ResourceProvider.ImageSourceSettings.FillColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/resourceprovider-imagesourcesettings/fillcolor-property/llms-full.txt)
- **Next:** [ResourceProvider.ShapeItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/resourceprovider/shapeitem-enumeration/llms-full.txt)
