Share via


UIScrollView.DirectionalLockEnabled Property

Definition

If true, and the user begins scrolling in one axis (i.e. horizontally) then the scroll view disables scrolling in the other axis (i.e. vertically).

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool DirectionalLockEnabled { [Foundation.Export("isDirectionalLockEnabled")] get; [Foundation.Export("setDirectionalLockEnabled:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("isDirectionalLockEnabled")>]
[<set: Foundation.Export("setDirectionalLockEnabled:")>]
member this.DirectionalLockEnabled : bool with get, set

Property Value

Attributes

Remarks

If this property is false, then scrolling is permitted both horizontally and vertically.

Applies to