| Category | Text decoration |
|---|
Purpose — Set the underline stroke color as device RGB.
Description — Switches the underline's color mode to RGB (mode 0), overriding any previous CMYK or Separation color set via the sibling calls below — the three color-setting calls are mutually exclusive, last-write-wins on the mode.
Declarations
C
int32_t __stdcall pdfSetTextUnderlineColor(PPDF IPDF, double Red, double Green, double Blue);
Delphi
function pdfSetTextUnderlineColor(const IPDF: PPDF; Red, Green, Blue: Double): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Red, Green, Blue | Double | 0.0..1.0 device RGB components. |
Return value — 1 on a valid handle; 0 on an invalid handle.
See also — pdfSetTextUnderlineColorCMYK, pdfSetTextUnderlineColorSep
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfSetTextUnderlineColor(IntPtr IPDF, double Red, double Green, double Blue);
Area
Text
Category
Setters
Exported names
pdfSetTextUnderlineColor
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.