Class TokenizedTextBlockElement
Represents a tokenized text block in TokenizedTextBlockElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TokenizedTextBlockElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ITextBlock
  Constructors
TokenizedTextBlockElement()
Initializes a new instance of the TokenizedTextBlockElement class.
Declaration
public TokenizedTextBlockElement()
  TokenizedTextBlockElement(String)
Initializes a new instance of the TokenizedTextBlockElement class.
Declaration
public TokenizedTextBlockElement(string text)
  Parameters
| 
        System.String
        text
         The text.  | 
    
Properties
AllowRemove
Gets or sets a value indicating whether the block can be remove by clicking the Remove button.
Declaration
public bool AllowRemove { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ContentElement
Gets the content element that contains the text
Declaration
public LightVisualElement ContentElement { get; }
  Property Value
| 
        LightVisualElement
         
  | 
    
Item
Gets the associated tokenized text item.
Declaration
public RadTokenizedTextItem Item { get; }
  Property Value
| 
        RadTokenizedTextItem
         
  | 
    
RemoveButton
Gets the remove button.
Declaration
public RadButtonElement RemoveButton { get; }
  Property Value
| 
        RadButtonElement
         
  | 
    
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
  Overrides
CreateContentElement()
Creates the text content element.
Declaration
protected virtual LightVisualElement CreateContentElement()
  Returns
| 
        LightVisualElement
         
  | 
    
CreateRemoveButton()
Creates the remove button element.
Declaration
protected virtual RadButtonElement CreateRemoveButton()
  Returns
| 
        RadButtonElement
         
  | 
    
CreateTokenizedTextItem(String, Object)
Creates the tokenized text item.
Declaration
protected virtual RadTokenizedTextItem CreateTokenizedTextItem(string text, object value)
  Parameters
| 
        System.String
        text
         The text.  | 
    
| 
        System.Object
        value
         The value.  | 
    
Returns
| 
        RadTokenizedTextItem
         
  | 
    
GetCharacterIndexFromX(Single)
Gets the character index at X-position.
Declaration
public virtual int GetCharacterIndexFromX(float x)
  Parameters
| 
        System.Single
        x
         The x.  | 
    
Returns
| 
        System.Int32
         
  | 
    
Implements
GetRectangleFromCharacterIndex(Int32, Boolean)
Gets a rectangle of character by index.
Declaration
public virtual RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)
  Parameters
| 
        System.Int32
        index
         The index.  | 
    
| 
        System.Boolean
        trailEdge
         if set to   | 
    
Returns
| 
        System.Drawing.RectangleF
         
  | 
    
Implements
InitializeFields()
Declaration
protected override void InitializeFields()
  Overrides
OnRemoveButtonClick()
Called when the remove button is clicked.
Declaration
protected virtual void OnRemoveButtonClick()
  Explicit Interface Implementations
ITextBlock.Arrange(RectangleF)
Declaration
void ITextBlock.Arrange(RectangleF finalRectangle)
  Parameters
| 
        System.Drawing.RectangleF
        finalRectangle
         
  | 
    
Implements
ITextBlock.get_DesiredSize()
Declaration
SizeF ITextBlock.get_DesiredSize()
  Returns
| 
        System.Drawing.SizeF
         
  | 
    
Implements
ITextBlock.Index
Gets or sets the index of the block
Declaration
int ITextBlock.Index { get; set; }
  Returns
| 
        System.Int32
         The index.  | 
    
Implements
ITextBlock.Length
Gets the length of the word. It can be different than the exact text length.
Declaration
int ITextBlock.Length { get; }
  Returns
| 
        System.Int32
         
  | 
    
Implements
ITextBlock.Measure(SizeF)
Declaration
void ITextBlock.Measure(SizeF availableSize)
  Parameters
| 
        System.Drawing.SizeF
        availableSize
         
  | 
    
Implements
ITextBlock.Offset
Gets a value indicating the offset.
Declaration
int ITextBlock.Offset { get; set; }
  Returns
| 
        System.Int32
         
  | 
    
Implements
ITextBlock.Text
Gets or sets the text associated with this item.
Declaration
string ITextBlock.Text { get; set; }
  Returns
| 
        System.String
         
  |