Interface ITextMeasurer
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Text measurement service (available during layout through TextMeasurer).
public interface ITextMeasurer
Methods
CaretX(string, TextStyle, int)
Horizontal position of the caret placed before character index (single line).
float CaretX(string text, TextStyle style, int index)
Parameters
Returns
HitTest(string, TextStyle, float)
Index of the caret position closest to x (single line).
int HitTest(string text, TextStyle style, float x)
Parameters
Returns
Measure(string, TextStyle, float)
Size of the laid-out text in DIPs.
Size Measure(string text, TextStyle style, float maxWidth = Infinity)