TX Text Control .NET for Windows Forms

ImageSourceSettings Class

Class|Introduced in 27.0
Namespace
TXTextControl.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.

Description

The ImageSourceSettings class provides properties for advanced settings to receive an image by using the ResourceProvider.GetSmallIcon and ResourceProvider.GetLargeIcon methods.

Syntax

public class ResourceProvider.ImageSourceSettings

Examples

The following example creates an Image Source Settings instance for a document-processing operation. The created object is then available to the surrounding document workflow.

TXTextControl.Windows.Forms.ResourceProvider.ImageSourceSettings imageSourceSettings = new();
Console.WriteLine("Image Source Settings is ready for use.");

Members

Constructors

ConstructorDescription
ImageSourceSettingsInitializes a new instance of the ResourceProvider.ImageSourceSettings class.

Properties

PropertyDescription
CultureSpecifies the culture to receive a language related image. If no specific image is defined for the culture, the related image for English (represented by the ISO 639 two-letter lowercase culture code "en") is returned by the corresponding method. The default value is CultureInfo.CurrentUICulture.
FillColorSpecifies the fill color of editable scopes inside the related image. If the property value is null, the default fill color of the image scope is used. The default value is null.
StrokeColorSpecifies 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.

Further Reading