Class
TextBoxSelectionPrimitive

Represent the selection paiting primitive

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class TextBoxSelectionPrimitive : IPrimitive

Inheritance: objectTextBoxSelectionPrimitive

Implements: IPrimitive

Constructors

TextBoxSelectionPrimitive(RadTextBoxControlElement)

Initializes a new instance of the TextBoxSelectionPrimitive class.

Declaration

cs-api-definition
public TextBoxSelectionPrimitive(RadTextBoxControlElement textBox)

Parameters

textBox

RadTextBoxControlElement

The text box.

Properties

HideSelection

Gets or sets a value indicating whether the selection should be hidden if focused is lost

Declaration

cs-api-definition
public bool HideSelection { get; set; }

Property Value

bool

true if [hide selection]; otherwise, false.

SelectionColor

Gets or sets the color of the selection.

Declaration

cs-api-definition
public Color SelectionColor { get; set; }

Property Value

Color

The color of the selection.

SelectionOpacity

Gets or sets the selection opacity.

Declaration

cs-api-definition
public int SelectionOpacity { get; set; }

Property Value

int

The selection opacity.

ShouldPaint

Gets or sets a value indicating whether the primitive should be painted be painted.

Declaration

cs-api-definition
public bool ShouldPaint { get; set; }

Property Value

bool

Implements IPrimitive.ShouldPaint

TextBoxElement

Gets the associated text box element.

Declaration

cs-api-definition
public RadTextBoxControlElement TextBoxElement { get; }

Property Value

RadTextBoxControlElement

Methods

GetRectangle(LineInfo)

Gets the rectangle of LineInfo

Declaration

cs-api-definition
protected virtual RectangleF GetRectangle(LineInfo currentLine)

Parameters

currentLine

LineInfo

The current line.

Returns

RectangleF

Invalidate(TextPosition, TextPosition, bool)

Invalidates the specified selection start.

Declaration

cs-api-definition
public virtual void Invalidate(TextPosition selectionStart, TextPosition selectionEnd, bool repaint)

Parameters

selectionStart

TextPosition

The selection start.

selectionEnd

TextPosition

The selection end.

repaint

bool

if set to true [repaint].

PaintPrimitive(IGraphics, float, SizeF)

Draws the primitive on the screen.

Declaration

cs-api-definition
public virtual void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)

Parameters

graphics

IGraphics

angle

float

scale

SizeF

Implements IPrimitive.PaintPrimitive(IGraphics, float, SizeF)