THotPDF.SetLoadedOutlineColor Method
Sets the text display colour of a loaded PDF bookmark (outline) entry, specified as RGB floating-point values
Declaration
procedure SetLoadedOutlineColor(Index: Integer; AR, AG, AB: Single);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Index | Zero-based index of the outline entry (flattened sequence) |
AR | Red component, ranging from 0.0 to 1.0 |
AG | Green component, ranging from 0.0 to 1.0 |
AB | Blue component, ranging from 0.0 to 1.0 |
Usage notes
- 大纲颜色写入 PDF 书签条目的
C数组,支持此属性的查看器才会以对应颜色渲染书签文本 - Colour component values must be between 0.0 and 1.0; passing 1.0/1.0/1.0 gives white, 0.0/0.0/0.0 gives black
- 可与
SetLoadedOutlineStyle配合使用,同时设置颜色与粗体、斜体样式以增强大纲可读性