UIScrollView.ContentInset Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The distance, in points, that the content of the scroll view is inset inside of the scroll view.
public virtual UIKit.UIEdgeInsets ContentInset { [Foundation.Export("contentInset")] get; [Foundation.Export("setContentInset:")] set; }
member this.ContentInset : UIKit.UIEdgeInsets with get, set
Property Value
The default value is Zero
- Attributes
Remarks
This is used to add scrolling area around the content of the a scroll view. Generally, the application developer also sets ScrollIndicatorInsets to the same value, so that the scroll indicators appear near the to-be-scrolled content and do not overlap elements placed in the inset area.
Applies to
See also
- <xref:UIKit.UIScrollView.ScrollIndicatorInset>