MonobjcMonobjc Documented Class Library
SetSelectionFromToAnchorHighlight Method (startPos, endPos, anchorPos, lit)
NamespacesMonobjc.AppKitNSMatrixSetSelectionFromToAnchorHighlight(NSInteger, NSInteger, NSInteger, Boolean)

Programmatically selects a range of cells.

Original signature is '- (void)setSelectionFrom:(NSInteger)startPos to:(NSInteger)endPos anchor:(NSInteger)anchorPos highlight:(BOOL)lit'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetSelectionFromToAnchorHighlight(
	NSInteger startPos,
	NSInteger endPos,
	NSInteger anchorPos,
	bool lit
)
Public Overridable Sub SetSelectionFromToAnchorHighlight ( _
	startPos As NSInteger, _
	endPos As NSInteger, _
	anchorPos As NSInteger, _
	lit As Boolean _
)
public:
virtual void SetSelectionFromToAnchorHighlight(
	NSInteger startPos, 
	NSInteger endPos, 
	NSInteger anchorPos, 
	bool lit
)
Parameters
startPos (NSInteger)
The position of the cell that marks where the user would have pressed the mouse button.
endPos (NSInteger)
The position of the cell that marks where the user would have released the mouse button.
anchorPos (NSInteger)
The position of the cell to treat as the last cell the user would have selected. To simulate Shift-dragging (continuous selection) anchorPos should be the endPos used in the last method call. To simulate Command-dragging (discontinuous selection), anchorPos should be the same as this method call’s startPos.
lit (Boolean)
YES if cells selected by this method should be highlighted.
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)