Allows the delegate for sender to constrain the divider to certain positions.
Original signature is '- (CGFloat)splitView:(NSSplitView *)splitView constrainSplitPosition:(CGFloat)proposedPosition ofSubviewAt:(NSInteger)dividerIndex'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public delegate CGFloat SplitViewConstrainSplitPositionOfSubviewAtEventHandler( NSSplitView splitView, CGFloat proposedPosition, NSInteger dividerIndex )
Public Delegate Function SplitViewConstrainSplitPositionOfSubviewAtEventHandler ( _ splitView As NSSplitView, _ proposedPosition As CGFloat, _ dividerIndex As NSInteger _ ) As CGFloat
public delegate CGFloat SplitViewConstrainSplitPositionOfSubviewAtEventHandler( NSSplitView^ splitView, CGFloat proposedPosition, NSInteger dividerIndex )
Parameters
- splitView (NSSplitView)
- The split view that sent the message.
- proposedPosition (CGFloat)
- The cursor’s current position, and the proposed position of the divider.
- dividerIndex (NSInteger)
- Specifies the divider the user is moving, with the first divider being 0 and increasing from top to bottom (or left to right).
Return Value
The position at which to constrain the divider.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)