Class TextBoxControlMeasurer
Represents text measurer of RadTextBoxControlElement.
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.Windows.Forms.TextFormatFlags
|
StringRenderingHint
Declaration
public const TextRenderingHint StringRenderingHint
Field Value
System.Drawing.Text.TextRenderingHint
|
TabSize
Declaration
public const int TabSize = 4
Field Value
System.Int32
|
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.String
text
The text. |
System.Drawing.Font
font
The font. |
System.Double
availableWidth
The available width. |
Returns
System.Int32
|
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.String
text
The text. |
System.Drawing.Font
font
The font. |
System.Single
availableWidth
The available width. |
Returns
System.Int32
|
MeasureText(String, Font)
Measures a text.
Declaration
public static Size MeasureText(string text, Font font)
Parameters
System.String
text
The text. |
System.Drawing.Font
font
The font. |
Returns
System.Drawing.Size
|