AccurateTextMeasureString(Graphics, RightToLeft, String, Font, PaletteTextTrim, PaletteRelativeAlign, PaletteTextHotkeyPrefix, TextRenderingHint, Boolean, Boolean, Boolean, Boolean) Method |
Pixel accurate measure of the specified string when drawn with the specified Font object.
Namespace: Internal.ComponentFactory.Krypton.ToolkitAssembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static AccurateTextMemento MeasureString(
Graphics g,
RightToLeft rtl,
string text,
Font font,
PaletteTextTrim trim,
PaletteRelativeAlign align,
PaletteTextHotkeyPrefix prefix,
TextRenderingHint hint,
bool compatiblePadding,
bool composition,
bool glowing,
bool disposeFont
)
Parameters
- g Graphics
- Graphics instance used to measure text.
- rtl RightToLeft
- Right to left setting for control.
- text String
- String to measure.
- font Font
- Font object that defines the text format of the string.
- trim PaletteTextTrim
- How to trim excess text.
- align PaletteRelativeAlign
- How to align multine text.
- prefix PaletteTextHotkeyPrefix
- How to process prefix characters.
- hint TextRenderingHint
- Rendering hint.
- compatiblePadding Boolean
- composition Boolean
- Should draw on a composition element.
- glowing Boolean
- When on composition draw with glowing.
- disposeFont Boolean
- Dispose of font when finished with it.
Return Value
AccurateTextMementoA memento used to draw the text.
See Also