RichTextBox.SelectionBackColor RichTextBox.SelectionBackColor RichTextBox.SelectionBackColor RichTextBox.SelectionBackColor Property

定义

获取或设置在 RichTextBox 控件中选中文本时文本的颜色。Gets or sets the color of text when the text is selected in a RichTextBox control.

public:
 property System::Drawing::Color SelectionBackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Color SelectionBackColor { get; set; }
member this.SelectionBackColor : System.Drawing.Color with get, set
Public Property SelectionBackColor As Color

属性值

Color,表示文本在选中时的颜色。A Color that represents the text color when the text is selected. 默认为 DefaultBackColor 属性的值。The default is the value of the DefaultBackColor property.

注解

用于SelectionBackColor获取或设置RichTextBox中选定文本的颜色。Use SelectionBackColor to get or set the color of selected text in the RichTextBox. 如果当前未选择任何文本,则SelectionBackColor该属性将应用于插入符号的当前位置。If no text is currently selected, the SelectionBackColor property applies to the current position of the caret. 从该位置输入的字符具有指定SelectionBackColor的。Characters that are entered from that position have the specified SelectionBackColor.

适用于