Class TextBlockElement
Represents a single word in TextBoxWrapPanel
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TextBlockElement : VisualElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ITextBlock
Constructors
TextBlockElement()
TextBlockElement(String)
Initializes a new instance of the TextBlockElement class.
Declaration
public TextBlockElement(string text)
Parameters
System.String
text
The text. |
Properties
DrawFill
Gets or sets a value indicating whether the word's background can be painted.
Declaration
public bool DrawFill { get; set; }
Property Value
System.Boolean
|
Index
Gets or sets the index of the word
Declaration
public int Index { get; set; }
Property Value
System.Int32
The index. |
Implements
Length
Gets the length of the word. It can be different than the exact text length.
Declaration
public virtual int Length { get; }
Property Value
System.Int32
|
Implements
Offset
Gets or sets the word according to the previous one
Declaration
public int Offset { get; set; }
Property Value
System.Int32
The offset. |
Implements
Text
Gets or sets the word's text
Declaration
public string Text { get; set; }
Property Value
System.String
The text. |
Implements
Methods
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.Drawing.SizeF
scaleFactor
|
Overrides
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()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
ResetLayoutCore()
ToString()
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.Measure(SizeF)
Declaration
void ITextBlock.Measure(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|