Transparency Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the text frame's transparency. It must be a value between 0 and 255. Zero means opaque and 255 means completely transparent.
Syntax
public byte Transparency { get; set; }Public Property Transparency As ByteExamples
The following example applies bold formatting through the text frame's selection by using TextFrame.Transparency.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
textFrame.Transparency = 1;
Console.WriteLine($"Transparency used by Text Frame: {textFrame.Transparency}");Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
textFrame.Transparency = 1
Console.WriteLine($"Transparency used by Text Frame: {textFrame.Transparency}")