Click or drag to resize

ControlGetAnchor Method

Note: This API is now obsolete.

Returns the anchor identified by margin constant from Margin enum. A getter method for AnchorBottom, AnchorLeft, AnchorRight and AnchorTop.

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

Parameters

margin
Type: GodotMargin

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

Return Value

Type: Single

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

See Also