Cursor.SelectionColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a semi-transparent color that highlights a range of data.
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
Property Value
The color of the highlighted range. The default value is LightGray, with an alpha value of 120.
- Attributes
Remarks
This property determines the color of the range selection, and can be set to any valid ARGB (alpha, red, green, blue) value. If an alpha value, which determines the level of transparency, is not provided, a default alpha value of 120 is used.
The selected color can be set for both the X and Y axis cursors, which is implemented using the CursorX and CursorY properties of the ChartArea object, respectively. If a range is only selected along the X-axis, the SelectionColor value for the X-axis cursor is used; if a range is only selected along the Y-axis, the SelectionColor value for the Y-axis cursor is used. If a range is selected along both axes, the SelectionColor value for the Y-axis cursor is also used for the selected color.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈