Class TextBoxSelectionPrimitive
Represent the selection paiting primitive
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TextBoxSelectionPrimitive : IPrimitive
  Constructors
TextBoxSelectionPrimitive(RadTextBoxControlElement)
Initializes a new instance of the TextBoxSelectionPrimitive class.
Declaration
public TextBoxSelectionPrimitive(RadTextBoxControlElement textBox)
  Parameters
| 
        RadTextBoxControlElement
        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
| 
        System.Boolean
         
  | 
    
SelectionColor
Gets or sets the color of the selection.
Declaration
public Color SelectionColor { get; set; }
  Property Value
| 
        System.Drawing.Color
         The color of the selection.  | 
    
SelectionOpacity
Gets or sets the selection opacity.
Declaration
public int SelectionOpacity { get; set; }
  Property Value
| 
        System.Int32
         The selection opacity.  | 
    
ShouldPaint
Gets or sets a value indicating whether the primitive should be painted be painted.
Declaration
public bool ShouldPaint { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
Implements
TextBoxElement
Gets the associated text box element.
Declaration
public RadTextBoxControlElement TextBoxElement { get; }
  Property Value
| 
        RadTextBoxControlElement
         
  | 
    
Methods
GetRectangle(LineInfo)
Gets the rectangle of LineInfo
Declaration
protected virtual RectangleF GetRectangle(LineInfo currentLine)
  Parameters
| 
        LineInfo
        currentLine
         The current line.  | 
    
Returns
| 
        System.Drawing.RectangleF
         
  | 
    
Invalidate(TextPosition, TextPosition, Boolean)
Invalidates the specified selection start.
Declaration
public virtual void Invalidate(TextPosition selectionStart, TextPosition selectionEnd, bool repaint)
  Parameters
| 
        TextPosition
        selectionStart
         The selection start.  | 
    
| 
        TextPosition
        selectionEnd
         The selection end.  | 
    
| 
        System.Boolean
        repaint
         if set to   | 
    
PaintPrimitive(IGraphics, Single, SizeF)
Draws the primitive on the screen.
Declaration
public virtual void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)
  Parameters
| 
        IGraphics
        graphics
         
  | 
    
| 
        System.Single
        angle
         
  | 
    
| 
        System.Drawing.SizeF
        scale
         
  |