// 設定線條顏色為深綠(有電狀態)
shape.get_CellsU("LineColor").ResultIU = (double)VisDefaultColors.visDarkGreen;
| 常數 | 值 | 說明 |
|---|---|---|
| visBlack | 0 | Black |
| visBlue | 4 | Blue |
| visCyan | 7 | Cyan |
| visDarkBlue | 10 | Dark blue |
| visDarkCyan | 13 | Dark cyan |
| visDarkGray | 19 | Dark gray |
| visDarkGreen | 9 | Dark green |
| visDarkRed | 8 | Dark red |
| visDarkYellow | 11 | Dark yellow |
| visGreen | 3 | Green |
| visRed | 2 | Red |
| visWhite | 1 | White |
| visYellow | 5 | Yellow |
(完整列表請參考 SDK 文檔)
shape.get_CellsSRC(
(short)VisSectionIndices.visSectionObject,
(short)VisRowIndices.visRowLine,
(short)VisCellIndices.visLineColor
).FormulaU = "4"; // 等同於 visBlue
get_CellsU("LineColor") 簡潔語法VisDefaultColors 列舉提升可讀性與維護性FormulaUFillForegnd、文字顏色用 CharColor,同樣支援列舉值