Class TokenizedTextBlockElement
Represents a tokenized text block in Tokenized
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, IImageElement, ITextPrimitive, ITextProvider, ITextBlock
Constructors
TokenizedTextBlockElement()
Initializes a new instance of the Tokenized
Declaration
public TokenizedTextBlockElement()
TokenizedTextBlockElement(String)
Initializes a new instance of the Tokenized
Declaration
public TokenizedTextBlockElement(string text)
Parameters
System. 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.
|
ContentElement
Gets the content element that contains the text
Declaration
public LightVisualElement ContentElement { get; }
Property Value
Item
Gets the associated tokenized text item.
Declaration
public RadTokenizedTextItem Item { get; }
Property Value
RemoveButton
Gets the remove button.
Declaration
public RadButtonElement RemoveButton { get; }
Property Value
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateContentElement()
Creates the text content element.
Declaration
protected virtual LightVisualElement CreateContentElement()
Returns
CreateRemoveButton()
Creates the remove button element.
Declaration
protected virtual RadButtonElement CreateRemoveButton()
Returns
CreateTokenizedTextItem(String, Object)
Creates the tokenized text item.
Declaration
protected virtual RadTokenizedTextItem CreateTokenizedTextItem(string text, object value)
Parameters
System. The text. |
System. The value. |
Returns
GetCharacterIndexFromX(Single)
Gets the character index at X-position.
Declaration
public virtual int GetCharacterIndexFromX(float x)
Parameters
System. The x. |
Returns
System.
|
Implements
GetRectangleFromCharacterIndex(Int32, Boolean)
Gets a rectangle of character by index.
Declaration
public virtual RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)
Parameters
System. The index. |
System. if set to |
Returns
System.
|
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.
|
Implements
ITextBlock.get_DesiredSize()
Declaration
SizeF ITextBlock.get_DesiredSize()
Returns
System.
|
Implements
ITextBlock.Index
Gets or sets the index of the block
Declaration
int ITextBlock.Index { get; set; }
Returns
System. 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.
|
Implements
ITextBlock.Measure(SizeF)
Declaration
void ITextBlock.Measure(SizeF availableSize)
Parameters
System.
|
Implements
ITextBlock.Offset
Gets a value indicating the offset.
Declaration
int ITextBlock.Offset { get; set; }
Returns
System.
|
Implements
ITextBlock.Text
Gets or sets the text associated with this item.
Declaration
string ITextBlock.Text { get; set; }
Returns
System.
|