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
Initializes a new instance of the AutoCompleteBoxViewElement class.
public AutoCompleteBoxViewElement()
Fields
protected const float DefaultMinLineHeight = 18
protected static readonly SizeF InfinitySize
protected static readonly Type TokenizedTextBlockElementType
Properties
Gets or sets the delimiter used to tokenize the text
public char Delimiter { get; set; }
The delimiter.
Gets or sets the height of the min line.
protected float MinLineHeight { get; set; }
The height of the min line.
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
public bool ShowRemoveButton { get; set; }
true if [show remove button]; otherwise, false.
Methods
Checks that tow block are splitted block
protected override bool AreSplittedBlock(ITextBlock firstBlock, ITextBlock secondBlock)
The first block.
secondBlockITextBlockThe second block.
Returns:Overrides:
Gets the block's text.
protected override string GetBlockText(ITextBlock block, int start, int length)
The block.
startintThe start.
lengthintThe length.
Returns:Overrides:
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Determines whether the specified text block is delimiter.
protected bool IsDelimiter(ITextBlock textBlock)
The text block.
Returns:true if the specified text block is delimiter; otherwise, false.
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
protected override void MeasureTextBlockOverride(ITextBlock textBlock, SizeF availableSize)
Overrides:
Measures and perfroms wrapping for blocks in WordWrap mode
protected override bool MeasureWrap(SizeF availableSize, int blockIndex, ref SizeF desiredSize, ref int currentLineIndex, ref int offset)
The available size.
blockIndexintIndex of the current block.
desiredSizeSizeFDocument desired size.
currentLineIndexintIndex of the current line.
offsetintThe current block offset.
Returns:Overrides:
Merge and measure block.
protected override void MergeAndMeasureBlock(ITextBlock textBlock, SizeF availableSize)
The text block.
availableSizeSizeFThe available size.
Overrides:
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
Overrides:
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs containing the property change information.
Overrides:
Raises the event.
protected override void OnTextBlockFormatting(TextBlockFormattingEventArgs e)
The TextBlockFormattingEventArgs instance containing the event data.
Overrides:
Raises the TextChanged event.
Raises the event.
protected virtual void OnTokenValidating(TokenValidatingEventArgs e)
The TokenValidatingEventArgs instance containing the event data.
Removes range of the editable block.
protected virtual int RemoveEditableBlockRange(ITextBlock tailBlock, int startCharPosition, out string text)
The block.
startCharPositionintThe start char position.
textstringThe text.
Returns:Replaces the text ranged with a new text
protected override void ReplaceOverride(TextPosition startPosition, TextPosition endPosition, string text)
The start position.
endPositionTextPositionThe end position.
textstringThe text.
Overrides:
Replaces the text range in ITextBlock
protected override void ReplaceTextRange(ITextBlock targetBlock, int startCharPosition, int endCharPosition, string text)
The target block.
startCharPositionintThe start char position.
endCharPositionintThe end char position.
textstringThe text.
Overrides:
protected override bool SplitBlock(LineInfo currentLine, SizeF availableSize, ref ITextBlock textBlock, ref int offset)
Overrides:
Events
Occurs when text is validating as token
public event TokenValidatingEventHandler TokenValidating