Class TextBoxControlMeasurer
Represents text measurer of Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TextBoxControlMeasurer
Constructors
TextBoxControlMeasurer()
Declaration
public TextBoxControlMeasurer()
Fields
FormatFlags
Declaration
public const TextFormatFlags FormatFlags
Field Value
System.
|
StringRenderingHint
Declaration
public const TextRenderingHint StringRenderingHint
Field Value
System.
|
TabSize
Declaration
public const int TabSize = 4
Field Value
System.
|
Methods
BinarySearchCaretIndex(String, Font, Double)
Searches the text's index where the caret should be positioned
Declaration
public static int BinarySearchCaretIndex(string text, Font font, double availableWidth)
Parameters
System. The text. |
System. The font. |
System. The available width. |
Returns
System.
|
BinarySearchWrapIndex(String, Font, Single)
Search the index position where the text should be wrapped for the available width.
Declaration
public static int BinarySearchWrapIndex(string text, Font font, float availableWidth)
Parameters
System. The text. |
System. The font. |
System. The available width. |
Returns
System.
|
MeasureText(String, Font)
Measures a text.
Declaration
public static Size MeasureText(string text, Font font)
Parameters
System. The text. |
System. The font. |
Returns
System.
|