Click or drag to resize

ControlGetMargin Method

Note: This API is now obsolete.

Returns the anchor identified by margin constant from Margin enum. A getter method for MarginBottom, MarginLeft, MarginRight and MarginTop.

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

Parameters

margin
Type: GodotMargin

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

Return Value

Type: Single

[Missing <returns> documentation for "M:Godot.Control.GetMargin(Godot.Margin)"]

See Also