ClassTextBoxSelectionPrimitive
Represent the selection paiting primitive
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TextBoxSelectionPrimitive : IPrimitive
Inheritance: objectTextBoxSelectionPrimitive
Implements:
Constructors
TextBoxSelectionPrimitive(RadTextBoxControlElement)
Initializes a new instance of the TextBoxSelectionPrimitive class.
Declaration
public TextBoxSelectionPrimitive(RadTextBoxControlElement textBox)
Parameters
textBox
The text box.
Properties
HideSelection
Gets or sets a value indicating whether the selection should be hidden if focused is lost
Declaration
public bool HideSelection { get; set; }
Property Value
true if [hide selection]; otherwise, false.
SelectionColor
Gets or sets the color of the selection.
Declaration
public Color SelectionColor { get; set; }
Property Value
The color of the selection.
SelectionOpacity
Gets or sets the selection opacity.
Declaration
public int SelectionOpacity { get; set; }
Property Value
The selection opacity.
ShouldPaint
Gets or sets a value indicating whether the primitive should be painted be painted.
TextBoxElement
Gets the associated text box element.
Declaration
public RadTextBoxControlElement TextBoxElement { get; }
Property Value
Methods
GetRectangle(LineInfo)
Gets the rectangle of LineInfo
Declaration
protected virtual RectangleF GetRectangle(LineInfo currentLine)
Parameters
currentLine
The current line.
Returns
Invalidate(TextPosition, TextPosition, bool)
Invalidates the specified selection start.
Declaration
public virtual void Invalidate(TextPosition selectionStart, TextPosition selectionEnd, bool repaint)
Parameters
selectionStart
The selection start.
selectionEnd
The selection end.
repaint
if set to true [repaint].
PaintPrimitive(IGraphics, float, SizeF)
Draws the primitive on the screen.