Class TextBoxViewElement
An editable and selectable TextBoxWrapPanel
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TextBoxViewElement : TextBoxWrapPanel, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, INotifyPropertyChangingEx
Constructors
TextBoxViewElement()
Declaration
public TextBoxViewElement()
Properties
HScroller
Gets or sets the scroller for Horizontal Scrollbar
Declaration
public TextBoxScroller HScroller { get; set; }
Property Value
TextBoxScroller
The Horizontal Scroller |
IsEditing
Gets a value indicating whether this textbox is editing mode.
Declaration
public bool IsEditing { get; }
Property Value
System.Boolean
|
IsReadOnly
Gets or sets a value indicating whether text in the text box is read-only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
System.Boolean
|
PasswordChar
Gets or sets the character used to mask characters of a password in a single-line
Declaration
public virtual char PasswordChar { get; set; }
Property Value
System.Char
|
ScrollOffset
Gets or sets the scroll offset.
Declaration
public SizeF ScrollOffset { get; set; }
Property Value
System.Drawing.SizeF
The scroll offset. |
SelectionPrimitive
Gets or sets the selection primitive that renders the selection
Declaration
public TextBoxSelectionPrimitive SelectionPrimitive { get; set; }
Property Value
TextBoxSelectionPrimitive
The selection primitive. |
UseSystemPasswordChar
Gets or sets a value indicating whether the text in view should appear as the default password character.
Declaration
public virtual bool UseSystemPasswordChar { get; set; }
Property Value
System.Boolean
|
VScroller
Gets or sets the scroller for Vertical Scrollbar
Declaration
public TextBoxScroller VScroller { get; set; }
Property Value
TextBoxScroller
The Vertical Scroller |
Methods
BeginEditUpdate()
Suspends notifcations when text is editing.
Declaration
public void BeginEditUpdate()
CanInsert(Char)
Declaration
protected override bool CanInsert(char symbol)
Parameters
System.Char
symbol
|
Returns
System.Boolean
|
Overrides
CanInsert(String)
Declaration
protected override bool CanInsert(string text)
Parameters
System.String
text
|
Returns
System.Boolean
|
Overrides
ClampDesiredSize(SizeF, SizeF)
Declaration
protected override SizeF ClampDesiredSize(SizeF desiredSize, SizeF availableSize)
Parameters
System.Drawing.SizeF
desiredSize
|
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
Delete(TextPosition, TextPosition)
Deletes the text range
Declaration
public bool Delete(TextPosition startPosition, TextPosition endPosition)
Parameters
TextPosition
startPosition
The start position. |
TextPosition
endPosition
The end position. |
Returns
System.Boolean
|
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.Drawing.SizeF
scaleFactor
|
Overrides
EndEditUpdate()
Resumes notifcations when text is editing.
Declaration
public void EndEditUpdate()
EndEditUpdate(Boolean, String, Int32, TextBoxChangeAction)
Resumes notifcations when text is editing.
Declaration
public virtual void EndEditUpdate(bool notify, string newText, int caretPosition, TextBoxChangeAction action)
Parameters
System.Boolean
notify
if set to |
System.String
newText
The new text. |
System.Int32
caretPosition
The caret position. |
TextBoxChangeAction
action
The action. |
GetClientRectangle(SizeF)
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.RectangleF
|
Overrides
GetLocation(TextPosition)
Gets the location of TextPosition instance
Declaration
public PointF GetLocation(TextPosition position)
Parameters
TextPosition
position
The position. |
Returns
System.Drawing.PointF
|
Insert(TextPosition, String)
Inserts the specified text in concerte position.
Declaration
public bool Insert(TextPosition startPosition, string text)
Parameters
TextPosition
startPosition
The position. |
System.String
text
The text. |
Returns
System.Boolean
|
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
OnPropertyChanging(PropertyChangingEventArgsEx)
Declaration
protected override void OnPropertyChanging(PropertyChangingEventArgsEx e)
Parameters
PropertyChangingEventArgsEx
e
|
Overrides
PaintChildren(IGraphics, Rectangle, Single, SizeF, Boolean)
Declaration
protected override void PaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
IGraphics
graphics
|
System.Drawing.Rectangle
clipRectange
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
System.Boolean
useRelativeTransformation
|
Overrides
PointToAbsolute(PointF)
Convert point to absolute point according to the current scroll offset
Declaration
public PointF PointToAbsolute(PointF pointF)
Parameters
System.Drawing.PointF
pointF
The point. |
Returns
System.Drawing.PointF
|
PostPaintChildren(IGraphics, Rectangle, Single, SizeF)
Declaration
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Drawing.Rectangle
clipRectange
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
RemoveBlockRange(ITextBlock, Int32, ITextBlock, Int32, ref Int32)
Declaration
protected virtual ITextBlock RemoveBlockRange(ITextBlock startBlock, int startCharPosition, ITextBlock endBlock, int endCharPosition, ref int position)
Parameters
ITextBlock
startBlock
|
System.Int32
startCharPosition
|
ITextBlock
endBlock
|
System.Int32
endCharPosition
|
System.Int32
position
|
Returns
ITextBlock
|
Replace(TextPosition, TextPosition, String)
Replaces the text ranged with a new text
Declaration
public bool Replace(TextPosition startPosition, TextPosition endPosition, string text)
Parameters
TextPosition
startPosition
The start position. |
TextPosition
endPosition
The end position. |
System.String
text
The text. |
Returns
System.Boolean
|
ReplaceOverride(TextPosition, TextPosition, String)
Replaces the text ranged with a new text
Declaration
protected virtual void ReplaceOverride(TextPosition startPosition, TextPosition endPosition, string text)
Parameters
TextPosition
startPosition
The start position. |
TextPosition
endPosition
The end position. |
System.String
text
The text. |
ReplaceSpecialTextBlock(ITextBlock, Int32, Int32, String)
Replaces the text range in concrete special ITextBlock
Declaration
protected virtual void ReplaceSpecialTextBlock(ITextBlock targetBlock, int startCharPosition, int endCharPosition, string text)
Parameters
ITextBlock
targetBlock
The target block. |
System.Int32
startCharPosition
The start char position. |
System.Int32
endCharPosition
The end char position. |
System.String
text
The text. |
ReplaceTextBlock(ITextBlock, Int32, Int32, String)
Replaces the text range in concrete non-special ITextBlock
Declaration
protected virtual void ReplaceTextBlock(ITextBlock targetBlock, int startCharPosition, int endCharPosition, string text)
Parameters
ITextBlock
targetBlock
The target block. |
System.Int32
startCharPosition
The start char position. |
System.Int32
endCharPosition
The end char position. |
System.String
text
The text. |
ReplaceTextRange(ITextBlock, Int32, Int32, String)
Replaces the text range in ITextBlock
Declaration
protected virtual void ReplaceTextRange(ITextBlock targetBlock, int startCharPosition, int endCharPosition, string text)
Parameters
ITextBlock
targetBlock
The target block. |
System.Int32
startCharPosition
The start char position. |
System.Int32
endCharPosition
The end char position. |
System.String
text
The text. |