Class AutoCompleteBoxViewElement
An view port element of RadAutoCompleteBoxElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class AutoCompleteBoxViewElement : TextBoxViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, INotifyPropertyChangingEx
  Constructors
AutoCompleteBoxViewElement()
Initializes a new instance of the AutoCompleteBoxViewElement class.
Declaration
public AutoCompleteBoxViewElement()
  Fields
DefaultMinLineHeight
Declaration
protected const float DefaultMinLineHeight = 18F
  Field Value
| 
        System.Single
         
  | 
    
InfinitySize
Declaration
protected static readonly SizeF InfinitySize
  Field Value
| 
        System.Drawing.SizeF
         
  | 
    
TokenizedTextBlockElementType
Declaration
protected static readonly Type TokenizedTextBlockElementType
  Field Value
| 
        System.Type
         
  | 
    
Properties
Delimiter
Gets or sets the delimiter used to tokenize the text
Declaration
public char Delimiter { get; set; }
  Property Value
| 
        System.Char
         The delimiter.  | 
    
MinLineHeight
Gets or sets the height of the min line.
Declaration
protected float MinLineHeight { get; set; }
  Property Value
| 
        System.Single
         The height of the min line.  | 
    
PasswordChar
Declaration
public override char PasswordChar { get; set; }
  Property Value
| 
        System.Char
         
  | 
    
Overrides
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
| 
        System.Boolean
         
  | 
    
UseSystemPasswordChar
Declaration
public override bool UseSystemPasswordChar { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
Overrides
Methods
AddBlockDesiredSize(SizeF, LineInfo)
Declaration
protected override void AddBlockDesiredSize(SizeF blockDesiredSize, LineInfo line)
  Parameters
| 
        System.Drawing.SizeF
        blockDesiredSize
         
  | 
    
| 
        LineInfo
        line
         
  | 
    
Overrides
AreSplittedBlock(ITextBlock, ITextBlock)
Declaration
protected override bool AreSplittedBlock(ITextBlock firstBlock, ITextBlock secondBlock)
  Parameters
| 
        ITextBlock
        firstBlock
         
  | 
    
| 
        ITextBlock
        secondBlock
         
  | 
    
Returns
| 
        System.Boolean
         
  | 
    
Overrides
CreateBlock(String, Type)
Declaration
protected override ITextBlock CreateBlock(string text, Type type)
  Parameters
| 
        System.String
        text
         
  | 
    
| 
        System.Type
        type
         
  | 
    
Returns
| 
        ITextBlock
         
  | 
    
Overrides
CreateTextBlocksOverride(String)
Declaration
protected override void CreateTextBlocksOverride(string text)
  Parameters
| 
        System.String
        text
         
  | 
    
Overrides
GetBlockText(ITextBlock, Int32, Int32)
Declaration
protected override string GetBlockText(ITextBlock block, int start, int length)
  Parameters
| 
        ITextBlock
        block
         
  | 
    
| 
        System.Int32
        start
         
  | 
    
| 
        System.Int32
        length
         
  | 
    
Returns
| 
        System.String
         
  | 
    
Overrides
InitializeFields()
Declaration
protected override void InitializeFields()
  Overrides
InsertTextBlocks(Int32, String, Type)
Declaration
protected override int InsertTextBlocks(int index, string text, Type blockType)
  Parameters
| 
        System.Int32
        index
         
  | 
    
| 
        System.String
        text
         
  | 
    
| 
        System.Type
        blockType
         
  | 
    
Returns
| 
        System.Int32
         
  | 
    
Overrides
InsertTokenizedTextBlocks(Int32, String, Boolean)
Declaration
protected virtual int InsertTokenizedTextBlocks(int index, string text, bool performInvalidation)
  Parameters
| 
        System.Int32
        index
         
  | 
    
| 
        System.String
        text
         
  | 
    
| 
        System.Boolean
        performInvalidation
         
  | 
    
Returns
| 
        System.Int32
         
  | 
    
IsDelimiter(ITextBlock)
Determines whether the specified text block is delimiter.
Declaration
protected bool IsDelimiter(ITextBlock textBlock)
  Parameters
| 
        ITextBlock
        textBlock
         The text block.  | 
    
Returns
| 
        System.Boolean
         
  | 
    
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
  Parameters
| 
        System.Drawing.SizeF
        availableSize
         
  | 
    
Returns
| 
        System.Drawing.SizeF
         
  | 
    
Overrides
MeasureTextBlockOverride(ITextBlock, SizeF)
Declaration
protected override void MeasureTextBlockOverride(ITextBlock textBlock, SizeF availableSize)
  Parameters
| 
        ITextBlock
        textBlock
         
  | 
    
| 
        System.Drawing.SizeF
        availableSize
         
  | 
    
Overrides
MeasureWrap(SizeF, Int32, ref SizeF, ref Int32, ref Int32)
Declaration
protected override bool MeasureWrap(SizeF availableSize, int blockIndex, ref SizeF desiredSize, ref int currentLineIndex, ref int offset)
  Parameters
| 
        System.Drawing.SizeF
        availableSize
         
  | 
    
| 
        System.Int32
        blockIndex
         
  | 
    
| 
        System.Drawing.SizeF
        desiredSize
         
  | 
    
| 
        System.Int32
        currentLineIndex
         
  | 
    
| 
        System.Int32
        offset
         
  | 
    
Returns
| 
        System.Boolean
         
  | 
    
Overrides
MergeAndMeasureBlock(ITextBlock, SizeF)
Declaration
protected override void MergeAndMeasureBlock(ITextBlock textBlock, SizeF availableSize)
  Parameters
| 
        ITextBlock
        textBlock
         
  | 
    
| 
        System.Drawing.SizeF
        availableSize
         
  | 
    
Overrides
OnChildrenChanged(RadElement, ItemsChangeOperation)
Declaration
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
  Parameters
| 
        RadElement
        child
         
  | 
    
| 
        ItemsChangeOperation
        changeOperation
         
  | 
    
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
  Parameters
| 
        System.ComponentModel.PropertyChangedEventArgs
        e
         
  | 
    
Overrides
OnTextBlockFormatting(TextBlockFormattingEventArgs)
Declaration
protected override void OnTextBlockFormatting(TextBlockFormattingEventArgs e)
  Parameters
| 
        TextBlockFormattingEventArgs
        e
         
  | 
    
Overrides
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
  Parameters
| 
        System.EventArgs
        e
         
  | 
    
Overrides
OnTokenValidating(String)
Raises the TokenValidating event.
Declaration
protected bool OnTokenValidating(string tokenText)
  Parameters
| 
        System.String
        tokenText
         The token text.  | 
    
Returns
| 
        System.Boolean
         
  | 
    
OnTokenValidating(TokenValidatingEventArgs)
Raises the TokenValidating event.
Declaration
protected virtual void OnTokenValidating(TokenValidatingEventArgs e)
  Parameters
| 
        TokenValidatingEventArgs
        e
         The TokenValidatingEventArgs instance containing the event data.  | 
    
RemoveEditableBlockRange(ITextBlock, Int32, out String)
Removes range of the editable block.
Declaration
protected virtual int RemoveEditableBlockRange(ITextBlock tailBlock, int startCharPosition, out string text)
  Parameters
| 
        ITextBlock
        tailBlock
         The block.  | 
    
| 
        System.Int32
        startCharPosition
         The start char position.  | 
    
| 
        System.String
        text
         The text.  | 
    
Returns
| 
        System.Int32
         
  | 
    
ReplaceOverride(TextPosition, TextPosition, String)
Declaration
protected override void ReplaceOverride(TextPosition startPosition, TextPosition endPosition, string text)
  Parameters
| 
        TextPosition
        startPosition
         
  | 
    
| 
        TextPosition
        endPosition
         
  | 
    
| 
        System.String
        text
         
  | 
    
Overrides
ReplaceTextRange(ITextBlock, Int32, Int32, String)
Declaration
protected override void ReplaceTextRange(ITextBlock targetBlock, int startCharPosition, int endCharPosition, string text)
  Parameters
| 
        ITextBlock
        targetBlock
         
  | 
    
| 
        System.Int32
        startCharPosition
         
  | 
    
| 
        System.Int32
        endCharPosition
         
  | 
    
| 
        System.String
        text
         
  | 
    
Overrides
SplitBlock(LineInfo, SizeF, ref ITextBlock, ref Int32)
Declaration
protected override bool SplitBlock(LineInfo currentLine, SizeF availableSize, ref ITextBlock textBlock, ref int offset)
  Parameters
| 
        LineInfo
        currentLine
         
  | 
    
| 
        System.Drawing.SizeF
        availableSize
         
  | 
    
| 
        ITextBlock
        textBlock
         
  | 
    
| 
        System.Int32
        offset
         
  | 
    
Returns
| 
        System.Boolean
         
  | 
    
Overrides
Events
TokenValidating
Occurs when text is validating as token
Declaration
public event TokenValidatingEventHandler TokenValidating
  Event Type
| 
        TokenValidatingEventHandler
         
  |