Object: TablePaletteColor

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

The TablePaletteColor object provides a palette color for the 2D table display in DIAdem REPORT.

The following example generates a 2D table with a column and defines a color palette with 3 colors:

Dim oMyReportObj, oMyPosition, oMyColumn, oMyPalette, i
Call Report.NewLayout()
Set oMyReportObj = Report.ActiveSheet.Objects.Add(eReportObject2DTable, "My2DTable")
Set oMyPosition = oMyReportObj.Position.ByCoordinate
oMyPosition.X1 = 20
oMyPosition.Y1 = 20
oMyPosition.X2 = 80
oMyPosition.Y2 = 80
Set oMyColumn = oMyReportObj.Columns.Add(e2DTableColumnChannel)
oMyColumn.Channel.Reference = "[1]/[1]" 
oMyColumn.Settings.Font.Color.ColorIndex = eColorIndexPalette
Set oMyPalette = oMyReportObj.Settings.Palette
oMyPalette.Count = 3
For i = 1 to oMyPalette.Count
  Call oMyPalette(i).Color.SetPredefinedColor(i)
Next
Call Report.Refresh()

Properties

Color

Returned From

TablePaletteColors.Item

WAS THIS ARTICLE HELPFUL?

Not Helpful