Cursor.SelectionColor 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定半透明的顏色,用以突出顯示一系列資料。
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
屬性值
高亮範圍的顏色。 預設值為 LightGray,alpha 值為 120。
- 屬性
備註
此特性決定範圍選擇的顏色,並可設定為任意有效的 ARGB(alpha、紅、綠、藍)值。 若未提供決定透明度等級的 alpha 值,則使用預設的 120 alpha 值。
選取的顏色可以同時設定 X 軸和 Y 軸游標,這分別是利用CursorX物件的CursorY屬性ChartArea來實現的。 若僅沿 X 軸選取範圍, SelectionColor 則使用 X 軸游標的值;若僅沿 Y 軸選取範圍, SelectionColor 則使用 Y 軸游標的值。 若沿兩軸選取範圍, SelectionColor 則 Y 軸游標的值也會用於所選顏色。