Cursor.SelectionColor 属性

定义

获取或设置突出显示一系列数据的半透明颜色。

public:
 property System::Drawing::Color SelectionColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))]
public System.Drawing.Color SelectionColor { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))>]
member this.SelectionColor : System.Drawing.Color with get, set
Public Property SelectionColor As Color

属性值

突出显示区域的颜色。 默认值为 LightGray120 的 alpha 值。

属性

注解

此属性确定范围选择的颜色,并且可以设置为任何有效的 ARGB(alpha、红色、绿色、蓝色)值。 如果未提供确定透明度级别的 alpha 值,则使用默认值 120。

可以为 X 轴和 Y 轴光标设置所选颜色,该光标分别使用 CursorX 对象的和 CursorY 属性 ChartArea 实现。 如果仅沿 X 轴选择某个区域, SelectionColor 则使用 X 轴游标的值;如果仅沿 Y 轴选择区域, SelectionColor 则使用 Y 轴光标的值。 如果沿两个轴选择了一个范围, SelectionColor 则 Y 轴光标的值也用于所选颜色。

适用于