Click or drag to resize

ControlSetMargin Method

Note: This API is now obsolete.

Sets the margin identified by margin constant from Margin enum to given offset. A setter method for MarginBottom, MarginLeft, MarginRight and MarginTop.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
[ObsoleteAttribute("SetMargin is deprecated. Use the MarginBottom property instead.")]
public void SetMargin(
	Margin margin,
	float offset
)

Parameters

margin
Type: GodotMargin

[Missing <param name="margin"/> documentation for "M:Godot.Control.SetMargin(Godot.Margin,System.Single)"]

offset
Type: SystemSingle

[Missing <param name="offset"/> documentation for "M:Godot.Control.SetMargin(Godot.Margin,System.Single)"]

See Also