ClassAutoCompleteBoxViewElement
An view port element of RadAutoCompleteBoxElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class AutoCompleteBoxViewElement : TextBoxViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, INotifyPropertyChangingEx
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementTextBoxWrapPanelTextBoxViewElementAutoCompleteBoxViewElement
Implements:
Inherited Members
Constructors
AutoCompleteBoxViewElement()
Initializes a new instance of the AutoCompleteBoxViewElement class.
Declaration
public AutoCompleteBoxViewElement()
Fields
TokenizedTextBlockElementType
Declaration
protected static readonly Type TokenizedTextBlockElementType
Field Value
Properties
Delimiter
Gets or sets the delimiter used to tokenize the text
Declaration
public char Delimiter { get; set; }
Property Value
The delimiter.
MinLineHeight
Gets or sets the height of the min line.
Declaration
protected float MinLineHeight { get; set; }
Property Value
The height of the min line.
ShowRemoveButton
Gets or sets a value indicating whether the remove button of TokenizedTextBlockElement should appear. Notice that the text box should not be in read only mode
Declaration
public bool ShowRemoveButton { get; set; }
Property Value
true if [show remove button]; otherwise, false.
Methods
AddBlockDesiredSize(SizeF, LineInfo)
Adds the desired size of the block to desired size of line.
AreSplittedBlock(ITextBlock, ITextBlock)
Checks that tow block are splitted block
Declaration
protected override bool AreSplittedBlock(ITextBlock firstBlock, ITextBlock secondBlock)
Parameters
firstBlock
The first block.
secondBlock
The second block.
Returns
Overrides
CreateBlock(string, Type)
Declaration
protected override ITextBlock CreateBlock(string text, Type type)
Parameters
text
The text
type
The type.
Returns
Overrides
CreateTextBlocksOverride(string)
Declaration
protected override void CreateTextBlocksOverride(string text)
Parameters
text
Overrides
GetBlockText(ITextBlock, int, int)
Gets the block's text.
Declaration
protected override string GetBlockText(ITextBlock block, int start, int length)
Parameters
block
The block.
start
The start.
length
The length.
Returns
Overrides
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
IsDelimiter(ITextBlock)
Determines whether the specified text block is delimiter.
Declaration
protected bool IsDelimiter(ITextBlock textBlock)
Parameters
textBlock
The text block.
Returns
true if the specified text block is delimiter; otherwise, false.
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
MeasureTextBlockOverride(ITextBlock, SizeF)
Declaration
protected override void MeasureTextBlockOverride(ITextBlock textBlock, SizeF availableSize)
Parameters
textBlock
availableSize
Overrides
MeasureWrap(SizeF, int, ref SizeF, ref int, ref int)
Measures and perfroms wrapping for blocks in WordWrap mode
Declaration
protected override bool MeasureWrap(SizeF availableSize, int blockIndex, ref SizeF desiredSize, ref int currentLineIndex, ref int offset)
Parameters
availableSize
The available size.
blockIndex
Index of the current block.
desiredSize
Document desired size.
currentLineIndex
Index of the current line.
offset
The current block offset.
Returns
Overrides
MergeAndMeasureBlock(ITextBlock, SizeF)
Merge and measure block.
Declaration
protected override void MergeAndMeasureBlock(ITextBlock textBlock, SizeF availableSize)
Parameters
textBlock
The text block.
availableSize
The available size.
Overrides
OnChildrenChanged(RadElement, ItemsChangeOperation)
Declaration
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
Parameters
child
changeOperation
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The PropertyChangedEventArgs containing the property change information.
Overrides
OnTextBlockFormatting(TextBlockFormattingEventArgs)
Raises the event.
Declaration
protected override void OnTextBlockFormatting(TextBlockFormattingEventArgs e)
Parameters
e
The TextBlockFormattingEventArgs instance containing the event data.
Overrides
OnTextChanged(EventArgs)
Raises the TextChanged event.
OnTokenValidating(TokenValidatingEventArgs)
Raises the event.
Declaration
protected virtual void OnTokenValidating(TokenValidatingEventArgs e)
Parameters
e
The TokenValidatingEventArgs instance containing the event data.
OnTokenValidating(string)
Raises the event.
RemoveEditableBlockRange(ITextBlock, int, out string)
Removes range of the editable block.
Declaration
protected virtual int RemoveEditableBlockRange(ITextBlock tailBlock, int startCharPosition, out string text)
Parameters
tailBlock
The block.
startCharPosition
The start char position.
text
The text.
Returns
ReplaceOverride(TextPosition, TextPosition, string)
Replaces the text ranged with a new text
Declaration
protected override void ReplaceOverride(TextPosition startPosition, TextPosition endPosition, string text)
Parameters
startPosition
The start position.
endPosition
The end position.
text
The text.
Overrides
ReplaceTextRange(ITextBlock, int, int, string)
Replaces the text range in ITextBlock
Declaration
protected override void ReplaceTextRange(ITextBlock targetBlock, int startCharPosition, int endCharPosition, string text)
Parameters
targetBlock
The target block.
startCharPosition
The start char position.
endCharPosition
The end char position.
text
The text.
Overrides
SplitBlock(LineInfo, SizeF, ref ITextBlock, ref int)
Declaration
protected override bool SplitBlock(LineInfo currentLine, SizeF availableSize, ref ITextBlock textBlock, ref int offset)
Parameters
currentLine
availableSize
textBlock
offset
Returns
Overrides
Events
TokenValidating
Occurs when text is validating as token
Declaration
public event TokenValidatingEventHandler TokenValidating
Event Value