Object: Color

DIAdem 2017 Help

Edition Date: May 2017

Part Number: 370858N-01

»View Product Info
Download Help (Windows Only)

The Color object provides a color in DIAdem REPORT.

The following example generates a 2D axis system, enables individual axis colors and line widths, and specifies the axis colors and line widths:

Dim oMy2DAxisSystem, oMyPos, oMyXLine, oMyYLine
Call Report.NewLayout()
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20
oMyPos.Y2 = 80
oMy2DAxisSystem.Settings.UseIndividualAxisStyle = True
Set oMyXLine = oMy2DAxisSystem.XAxis.Line
Call oMyXLine.Color.SetPredefinedColor(eColorIndexBlue)
oMyXLine.UseCurveColor = False
oMyXLine.Width = eLineWidth0100 
Set oMyYLine = oMy2DAxisSystem.YAxis.Line
Call oMyYLine.Color.SetPredefinedColor(eColorIndexRed)
oMyYLine.UseCurveColor = False
oMyYLine.Width = eLineWidth0100
Call Report.Refresh()

Returned From

2DAxisGrid.Color | 2DAxisMiniTick.Color | 2DAxisSettings.BackgroundColor | 2DBackgroundSegment.Color | 2DBarFilling.Color | 2DErrorBarLine.Color | 2DTableColumnHeaderIndividualSettings.BackgroundColor | 2DTableColumnSettings.BackgroundColor | 2DTableDrawingCell.BackgroundColor | 2DTableGridLine.Color | 2DTableHeaderDefaultSettings.BackgroundColor | 2DTableItemBackgroundColor.AlternatingBackgroundColor | 2DTableItemBackgroundColor.BackgroundColor | 2DTableSettings.BackgroundColor | 2DTableSettings.BorderLineColor | 3DAdditionalSpikes.Color | 3DAdditionalVectorCurve.Color | 3DBarFilling.EdgeColor | 3DIsoValueTableItem.Color | 3DPlaneXY.BackgroundColor | 3DPlaneXZ.BackgroundColor | 3DPlaneYZ.BackgroundColor | 3DSurfaceSettings.AdditionalGridColor | 3DSurfaceSettings.LowerSurfaceColor | 3DTableSettings.BackgroundColor | 3DTableSettings.LineColor | AdditionalCommentText.BackgroundColor | AdditionalConstantLabel.BackgroundColor | AdditionalCoordinateLabel.BackgroundColor | AdditionalLineEndLabel.BackgroundColor | ArrowLine.Color | AxisLine.Color | BorderLine.Color | Circle.BackgroundColor | ColorLegendSettings.BackgroundColor | CommentElement.BackgroundColor | CurveExpansionLine.Color | CurveLegendSettings.BackgroundColor | FillEffects.Color | Font.BackColor | Font.Color | FontWithBorder.BackColor | FontWithBorder.Color | FormulaDisplay.FontColor | Frame.BackgroundColor | FrameElement.BackgroundColor | FrameLine.Color | Image.BackgroundColor | LegendFrame.Color | MarkerLine.Color | PageDefaultSettings.BackgroundColor | PaletteColor.Color | PaletteLine.Color | PolarCurveLine.Color | PolarSettings.BackgroundColor | Shadow.Color | SolidLine.Color | Text.BackgroundColor

WAS THIS ARTICLE HELPFUL?

Not Helpful