TX Text Control .NET for WPF

Fill Class

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

Description

The Drawing.Shape.Fill class determines the fill properties of a shape. The Fill class implements the System.ComponentModel.INotifyPropertyChanged interface.

Syntax

public class Shape.Fill

Examples

The following example includes the color value from a Fill object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Color: {fill.Color}");
Console.WriteLine("Fill is ready for use.");

Members

Properties

PropertyDescription
ColorGets or sets the shape's fill color. The default value is a structure of type Systen.Drawing.Color with the values A=255, R=91, G=155 and B=213.

Events

EventDescription
PropertyChangedNot described in the reference. public event PropertyChangedEventHandler PropertyChanged;