'宣言 Public Property ColorModel As ColorAppearance
public ColorAppearance ColorModel {get; set;}
'set the transparency of the colors UltraChart1.ColorModel.AlphaLevel = 125 'for linear models set the beginiing and end color, colors for each item will be a color between the beginning and end and approach the end color UltraChart1.ColorModel.ColorBegin = Color.Yellow UltraChart1.ColorModel.ColorEnd = Color.Red 'when setting the colormodel to custom you must set the array of colors to use UltraChart1.ColorModel.CustomPalette = New Color() {Color.Red, Color.Black, Color.Orange} 'turn on grayscale UltraChart1.ColorModel.Grayscale = True 'set the ColorModel Modlestyle UltraChart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLinear 'set the Scaling, wheter the shades increase, decrease or , stay the same or oscillate UltraChart1.ColorModel.Scaling = Infragistics.UltraChart.Shared.Styles.ColorScaling.Increasing
// set the transparency of the colors UltraChart1.ColorModel.AlphaLevel = 125; // for linear models set the beginiing and end color, colors for each item will be a color between the beginning and end and approach the end color UltraChart1.ColorModel.ColorBegin = Color.Yellow; UltraChart1.ColorModel.ColorEnd = Color.Red; // when setting the colormodel to custom you must set the array of colors to use UltraChart1.ColorModel.CustomPalette = new Color[] {Color.Red, Color.Black, Color.Orange}; // turn on grayscale UltraChart1.ColorModel.Grayscale = true // set the ColorModel Modlestyle UltraChart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLinear; // set the Scaling, wheter the shades increase, decrease or , stay the same or oscillate UltraChart1.ColorModel.Scaling = Infragistics.UltraChart.Shared.Styles.ColorScaling.Increasing;