MonobjcMonobjc Documented Class Library
NSTextView..::..TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesEventHandler Delegate
NamespacesMonobjc.AppKitNSTextViewNSTextView..::..TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesEventHandler

Returns the actual character ranges to select.

Original signature is '- (NSArray *)textView:(NSTextView *)aTextView willChangeSelectionFromCharacterRanges:(NSArray *)oldSelectedCharRanges toCharacterRanges:(NSArray *)newSelectedCharRanges'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public delegate NSArray TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesEventHandler(
	NSTextView aTextView,
	NSArray oldSelectedCharRanges,
	NSArray newSelectedCharRanges
)
Public Delegate Function TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesEventHandler ( _
	aTextView As NSTextView, _
	oldSelectedCharRanges As NSArray, _
	newSelectedCharRanges As NSArray _
) As NSArray
public delegate NSArray^ TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesEventHandler(
	NSTextView^ aTextView, 
	NSArray^ oldSelectedCharRanges, 
	NSArray^ newSelectedCharRanges
)
Parameters
aTextView (NSTextView)
The text view sending the message. This is the first text view in a series shared by a layout manager, not necessarily the text view displaying the selected text.
oldSelectedCharRanges (NSArray)
An array containing the original ranges of the selection. This must be a non-nil, non-empty array of objects responding to the NSValue rangeValue method, and in addition its elements must be sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
newSelectedCharRanges (NSArray)
An array containing the proposed character ranges for the new selection. This must be a non-nil, non-empty array of objects responding to the NSValue rangeValue method, and in addition its elements must be sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
Return Value
An array containing the actual character ranges for the new selection.
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)