MonobjcMonobjc Documented Class Library
SplitViewConstrainSplitPositionOfSubviewAt Method (splitView, proposedPosition, dividerIndex)
NamespacesMonobjc.AppKitINSSplitViewDelegateSplitViewConstrainSplitPositionOfSubviewAt(NSSplitView, CGFloat, NSInteger)

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 BasicVisual C++
CGFloat SplitViewConstrainSplitPositionOfSubviewAt(
	NSSplitView splitView,
	CGFloat proposedPosition,
	NSInteger dividerIndex
Function SplitViewConstrainSplitPositionOfSubviewAt ( _
	splitView As NSSplitView, _
	proposedPosition As CGFloat, _
	dividerIndex As NSInteger _
) As CGFloat
CGFloat SplitViewConstrainSplitPositionOfSubviewAt(
	NSSplitView^ splitView, 
	CGFloat proposedPosition, 
	NSInteger dividerIndex
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)