Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Measures literal text using the same current font and wrap width as wrapped drawing.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public static System.Numerics.Vector2 InnoEditor.ImGui.ImGui.MeasureWrappedText(string text, float wrapWidth)

Parameter text: The literal text, including explicit line breaks.

Parameter wrapWidth: The available width in already scaled presentation coordinates.

The copied natural text extent at the specified width.

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.