MonobjcMonobjc Documented Class Library
TextViewWillChangeSelectionFromCharacterRangeToCharacterRange Method (aTextView, oldSelectedCharRange, newSelectedCharRange)
NamespacesMonobjc.AppKitINSTextViewDelegateTextViewWillChangeSelectionFromCharacterRangeToCharacterRange(NSTextView, NSRange, NSRange)

Returns the actual range to select.

Original signature is '- (NSRange)textView:(NSTextView *)aTextView willChangeSelectionFromCharacterRange:(NSRange)oldSelectedCharRange toCharacterRange:(NSRange)newSelectedCharRange'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSRange TextViewWillChangeSelectionFromCharacterRangeToCharacterRange(
	NSTextView aTextView,
	NSRange oldSelectedCharRange,
	NSRange newSelectedCharRange
Function TextViewWillChangeSelectionFromCharacterRangeToCharacterRange ( _
	aTextView As NSTextView, _
	oldSelectedCharRange As NSRange, _
	newSelectedCharRange As NSRange _
) As NSRange
NSRange TextViewWillChangeSelectionFromCharacterRangeToCharacterRange(
	NSTextView^ aTextView, 
	NSRange oldSelectedCharRange, 
	NSRange newSelectedCharRange
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.
oldSelectedCharRange (NSRange)
The original range of the selection.
newSelectedCharRange (NSRange)
The proposed character range for the new selection.
Return Value
The actual character range 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)