Click or drag to resize

FontGetWordwrapStringSize Method

Returns the size that the string would have with word wrapping enabled with a fixed width.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 GetWordwrapStringSize(
	string string,
	float width
)

Parameters

string
Type: SystemString

[Missing <param name="string"/> documentation for "M:Godot.Font.GetWordwrapStringSize(System.String,System.Single)"]

width
Type: SystemSingle

[Missing <param name="width"/> documentation for "M:Godot.Font.GetWordwrapStringSize(System.String,System.Single)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.Font.GetWordwrapStringSize(System.String,System.Single)"]

See Also