TX Text Control .NET for Windows Forms

StrokeColor Property

Property|Introduced in 27.0
Namespace
TXTextControl.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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

public Color? StrokeColor { get; set; }

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.

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

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.