Platforms to show: All Mac Windows Linux Cross-Platform

NSEdgeInsetsMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS Main Plugin 21.0 ✅ Yes ❌ No ❌ No ✅ Yes All
A description of the distance between the edges of two rectangles.
Example
// This example needs a window with NSCollectionViewControlMBS1.
// leave a margin of 20 points around the items of a collection view
Var layout As New NSCollectionViewFlowLayoutMBS
layout.sectionInset = New NSEdgeInsetsMBS(20, 20, 20, 20) // top, left, bottom, right
layout.itemSize = NSMakeSizeMBS(100, 100)

NSCollectionViewControlMBS1.View.collectionViewLayout = layout

Edge insets describe the distance between the edges of one rectangle to a related rectangle that can be described by measuring a constant but edge-specific distance from each edge.
A common use for this structure is to describe the relationship between a view’s frame and its alignment rectangle.

  • 5 properties
    • property Bottom as Double
    • property Handle as Ptr
    • property Left as Double
    • property Right as Double
    • property Top as Double
  • 4 methods

This class has no subclasses.

Blog Entries

Release notes

Some properties using this class:

Some events using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS Main Plugin.


NSDraggingSessionMBS   -   NSEnumeratorMBS


The biggest plugin in space...