ImGui.MeasureWrappedText
Section titled “ImGui.MeasureWrappedText”
- Measures literal text using the same current font and wrap width as wrapped drawing.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public static System.Numerics.Vector2 InnoEditor.ImGui.ImGui.MeasureWrappedText(string text, float wrapWidth)Parameters
Section titled “Parameters”Parameter text: The literal text, including explicit line breaks.
Parameter wrapWidth: The available width in already scaled presentation coordinates.
Returns
Section titled “Returns”The copied natural text extent at the specified width.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The text is null.
Exception T:System.ArgumentException: The text contains an embedded zero code unit.
Exception T:System.Text.EncoderFallbackException: The text contains invalid Unicode.
Exception T:System.ArgumentOutOfRangeException: The width is not finite and positive.
Exception T:System.InvalidOperationException: No drawing scope is active on the owning UI thread and native context.
Exception T:System.ObjectDisposedException: The active UI session has retired.