ReportX 報表元件提供靈活的標題列 (Pole) 控制,可動態設定文字、高度與寬度。
| 成員 | 說明 |
|---|---|
SetPoleText(orientation, index, text) | 設定標題文字。orientation: 0=頂部標題列, 1=左側標題欄index: 序號 (從 1 起算) |
PoleHeight | 頂部標題列高度,設為 0 則隱藏。 |
PoleWidth | 左側標題欄寬度,設為 0 則隱藏。 |
// 設定頂部第 1 欄標題為「第一欄」
ReportX.SetPoleText(0, 1, "第一欄");
// 設定左側第 1 列標題為「第一列」
ReportX.SetPoleText(1, 1, "第一列");
// 調整尺寸
ReportX.PoleHeight = 25;
ReportX.PoleWidth = 80;