- NSTextView - Notifications 
- NSTextView() 
- NSTextView(Boolean) 
- NSTextView(CGRect) 
- NSTextView(IntPtr) 
- NSTextView(NativeHandle) 
- NSTextView(NSCoder) 
- NSTextView(NSObjectFlag) 
- NSTextView(CGRect, NSTextContainer) 
- AcceptsGlyphInfo 
- AccessibilityFocused 
- AccessibilityFrame 
- AccessibilityIdentifier 
- AccessibilityParent 
- AccessibilityValue 
- AccessibilityVisibleCharacterRange 
- AllowedInputSourceLocales 
- AllowsCharacterPickerTouchBarItem 
- AllowsDocumentBackgroundColorChange 
- AllowsImageEditing 
- AllowsMultipleSelection 
- AllowsUndo 
- AttributedString 
- AutomaticDashSubstitutionEnabled 
- AutomaticDataDetectionEnabled 
- AutomaticLinkDetectionEnabled 
- AutomaticQuoteSubstitutionEnabled 
- AutomaticSpellingCorrectionEnabled 
- AutomaticTextCompletionEnabled 
- AutomaticTextReplacementEnabled 
- BackgroundColor 
- CandidateListTouchBarItem 
- ClassHandle 
- ContentType 
- ContinuousSpellCheckingEnabled 
- ConversationIdentifier 
- DefaultParagraphStyle 
- Delegate 
- DidChangeSelectionNotification 
- DidChangeTypingAttributesNotification 
- DidCheckText 
- DidSwitchToNSLayoutManagerNotification 
- DisplaysLinkToolTips 
- DoCommandBySelector 
- DocumentVisibleRect 
- DrawsBackground 
- Editable 
- EnabledTextCheckingTypes 
- FieldEditor 
- FirstSelectedRange 
- GetCandidates 
- GetCompletions 
- GetTextCheckingCandidates 
- GetUndoManager 
- GetWritablePasteboardTypes 
- GrammarCheckingEnabled 
- HasMarkedText 
- IgnoreModifierKeysWhileDragging 
- ImportsGraphics 
- InlinePredictionType 
- InsertionPointColor 
- IsIncrementalSearchingEnabled 
- LayoutManager 
- LayoutOrientation 
- LinkClicked 
- LinkTextAttributes 
- MarkedRange 
- MarkedTextAttributes 
- MenuForEvent 
- PreferredTextAccessoryPlacement 
- RichText 
- RulerVisible 
- Selectable 
- SelectedRanges 
- SelectedTextAttributes 
- SelectionGranularity 
- ShouldChangeTextInRange 
- ShouldChangeTextInRanges 
- ShouldChangeTypingAttributes 
- ShouldDrawInsertionPoint 
- ShouldSelectCandidates 
- ShouldSetSpellingState 
- ShouldUpdateTouchBarItemIdentifiers 
- SmartInsertDeleteEnabled 
- String 
- StronglyReferencesTextStorage 
- TextContainer 
- TextContainerInset 
- TextContainerOrigin 
- TextContentStorage 
- TextLayoutManager 
- TextStorage 
- TypingAttributes 
- UnionRectInVisibleSelectedRange 
- UsesAdaptiveColorMappingForDarkAppearance 
- UsesFindBar 
- UsesFindPanel 
- UsesFontPanel 
- UsesInspectorBar 
- UsesRolloverButtonForSelection 
- UsesRuler 
- ValidAttributesForMarkedText 
- VisibleCharacterRanges 
- WeakDelegate 
- WillChangeNotifyingTextViewNotification 
- WillChangeSelection 
- WillChangeSelectionFromRanges 
- WillCheckText 
- WillDisplayToolTip 
- WillSwitchToNSLayoutManagerNotification 
- WindowLevel 
- WriteCell 
- AcceptableDragTypes() 
- AlignJustified(NSObject) 
- BeginSelectingCandidate(NSCandidateListTouchBarItem, nint) 
- BeginSelectingCandidate(NSCandidateListTouchBarItem, nint) 
- BreakUndoCoalescing() 
- ChangeAttributes(NSObject) 
- ChangeColor(NSColorPanel) 
- ChangeColor(NSObject) 
- ChangedCandidateListVisibility(NSCandidateListTouchBarItem, Boolean) 
- ChangeDocumentBackgroundColor(NSObject) 
- ChangeLayoutOrientation(NSObject) 
- ChangeSelectionFromCandidate(NSCandidateListTouchBarItem, nint, nint) 
- ChangeSelectionFromCandidate(NSCandidateListTouchBarItem, nint, nint) 
- CharacterIndex(CGPoint) 
- CheckText(NSRange, NSTextCheckingTypes, NSDictionary) 
- CheckTextInDocument(NSObject) 
- CheckTextInSelection(NSObject) 
- CleanUpAfterDragOperation() 
- ClickedOnLink(NSObject, nuint) 
- ClickedOnLink(NSObject, nuint) 
- Complete(NSObject) 
- CompletionsForPartialWord(NSRange, nint) 
- CompletionsForPartialWord(NSRange, nint) 
- ContentViewAtIndexeffectiveCharacterRange(nuint, NSRange) 
- Create(Boolean) 
- CreateFieldEditor() 
- CreateScrollableDocumentContentTextView() 
- CreateScrollablePlainDocumentContentTextView() 
- CreateScrollableTextView() 
- DidChangeText() 
- DidReplaceCharacters() 
- Dispose(Boolean) 
- DraggedImageBeganAt(NSImage, CGPoint) 
- DraggedImageEndedAtDeposited(NSImage, CGPoint, Boolean) 
- DraggedImageEndedAtOperation(NSImage, CGPoint, NSDragOperation) 
- DraggedImageMovedTo(NSImage, CGPoint) 
- DraggingSourceOperationMaskForLocal(Boolean) 
- DragOperationForDraggingInfo(INSDraggingInfo, String) 
- DragOperationForDraggingInfo(NSDraggingInfo, String) 
- DrawCharactersInRangeforContentView(NSRange, NSView) 
- DrawInsertionPoint(CGRect, NSColor, Boolean) 
- DrawsVertically(nuint) 
- DrawsVertically(nuint) 
- DrawViewBackgroundInRect(CGRect) 
- EndSelectingCandidate(NSCandidateListTouchBarItem, nint) 
- EndSelectingCandidate(NSCandidateListTouchBarItem, nint) 
- GetAccessibilityAttributedString(NSRange) 
- GetAccessibilityFrame(NSRange) 
- GetAccessibilityLine(nint) 
- GetAccessibilityLine(nint) 
- GetAccessibilityRangeForLine(nint) 
- GetAccessibilityRangeForLine(nint) 
- GetAccessibilityString(NSRange) 
- GetAttributedSubstring(NSRange) 
- GetAttributedSubstring(NSRange, NSRange) 
- GetBaselineDelta(nuint) 
- GetBaselineDelta(nuint) 
- GetCharacterIndex(CGPoint) 
- GetContentType() 
- GetFirstRect(NSRange, NSRange) 
- GetFirstRectForCharacterRange(NSRange) 
- GetFractionOfDistanceThroughGlyph(CGPoint) 
- GetPreferredPasteboardType(String[], String[]) 
- HandleTextChecking(NSTextCheckingResult[], NSRange, NSTextCheckingTypes, NSDictionary, NSOrthography, nint) 
- HandleTextChecking(NSTextCheckingResult[], NSRange, NSTextCheckingTypes, NSDictionary, NSOrthography, nint) 
- InsertCompletion(String, NSRange, nint, Boolean) 
- InsertCompletion(String, NSRange, nint, Boolean) 
- InsertText(NSObject) 
- InsertText(NSObject, NSRange) 
- InvalidateTextContainerOrigin() 
- IsCoalescingUndo() 
- LoosenKerning(NSObject) 
- LowerBaseline(NSObject) 
- MakeItem(NSTouchBar, String) 
- NamesOfPromisedFilesDroppedAtDestination(NSUrl) 
- OrderFrontLinkPanel(NSObject) 
- OrderFrontListPanel(NSObject) 
- OrderFrontSpacingPanel(NSObject) 
- OrderFrontSubstitutionsPanel(NSObject) 
- OrderFrontTablePanel(NSObject) 
- Outline(NSObject) 
- PasteAsPlainText(NSObject) 
- PasteAsRichText(NSObject) 
- PerformFindPanelAction(NSObject) 
- PerformValidatedReplacement(NSRange, NSAttributedString) 
- QuickLookPreviewableItemsInRanges(NSArray) 
- RaiseBaseline(NSObject) 
- RangeForUserCharacterAttributeChange() 
- RangeForUserCompletion() 
- RangeForUserParagraphAttributeChange() 
- RangeForUserTextChange() 
- RangesForUserCharacterAttributeChange() 
- RangesForUserParagraphAttributeChange() 
- RangesForUserTextChange() 
- ReadablePasteboardTypes() 
- ReadSelectionFromPasteboard(NSPasteboard) 
- ReadSelectionFromPasteboard(NSPasteboard, String) 
- RectsForCharacterRange(NSRange) 
- RegisterForServices() 
- ReplaceCharactersInRangewithString(NSRange, String) 
- ReplaceTextContainer(NSTextContainer) 
- RulerViewDidAddMarker(NSRulerView, NSRulerMarker) 
- RulerViewDidMoveMarker(NSRulerView, NSRulerMarker) 
- RulerViewDidRemoveMarker(NSRulerView, NSRulerMarker) 
- RulerViewHandleMouseDown(NSRulerView, NSEvent) 
- RulerViewShouldAddMarker(NSRulerView, NSRulerMarker) 
- RulerViewShouldMoveMarker(NSRulerView, NSRulerMarker) 
- RulerViewShouldRemoveMarker(NSRulerView, NSRulerMarker) 
- RulerViewWillAddMarker(NSRulerView, NSRulerMarker, nfloat) 
- RulerViewWillAddMarker(NSRulerView, NSRulerMarker, NFloat) 
- RulerViewWillMoveMarker(NSRulerView, NSRulerMarker, nfloat) 
- RulerViewWillMoveMarker(NSRulerView, NSRulerMarker, NFloat) 
- ScrollRangeToVisible(NSRange) 
- SelectionAffinity() 
- SelectionRange(NSRange, NSSelectionGranularity) 
- SetAlignmentRange(NSTextAlignment, NSRange) 
- SetBaseWritingDirection(NSWritingDirection, NSRange) 
- SetBaseWritingDirection(NSWritingDirection, NSRange) 
- SetConstrainedFrameSize(CGSize) 
- SetContentType(NSString) 
- SetLayoutOrientation(NSTextLayoutOrientation) 
- SetMarkedText(NSObject, NSRange) 
- SetMarkedText(NSObject, NSRange, NSRange) 
- SetNeedsDisplay(CGRect, Boolean) 
- SetSelectedRange(NSRange) 
- SetSelectedRange(NSRange, NSSelectionAffinity, Boolean) 
- SetSelectedRanges(NSArray, NSSelectionAffinity, Boolean) 
- SetSpellingState(nint, NSRange) 
- SetSpellingState(nint, NSRange) 
- ShouldChangeText(NSArray, String[]) 
- ShouldChangeText(NSRange, String) 
- ShouldReplaceCharactersInRangeswithStrings(NSArray, NSArray) 
- ShowFindIndicatorForRange(NSRange) 
- SmartDeleteRangeForProposedRange(NSRange) 
- SmartInsert(String, NSRange, String, String) 
- SmartInsert(String, NSRange, String, String) 
- SmartInsertAfter(String, NSRange) 
- SmartInsertBefore(String, NSRange) 
- SpellCheckerDocumentTag() 
- StartSpeaking(NSObject) 
- StopSpeaking(NSObject) 
- StringAtIndexeffectiveRangeendsWithSearchBoundary(nuint, NSRange, Boolean) 
- StringLength() 
- TightenKerning(NSObject) 
- ToggleAutomaticDashSubstitution(NSObject) 
- ToggleAutomaticDataDetection(NSObject) 
- ToggleAutomaticLinkDetection(NSObject) 
- ToggleAutomaticQuoteSubstitution(NSObject) 
- ToggleAutomaticSpellingCorrection(NSObject) 
- ToggleAutomaticTextCompletion(NSObject) 
- ToggleAutomaticTextReplacement(NSObject) 
- ToggleContinuousSpellChecking(NSObject) 
- ToggleGrammarChecking(NSObject) 
- ToggleQuickLookPreviewPanel(NSObject) 
- ToggleSmartInsertDelete(NSObject) 
- ToggleTraditionalCharacterShape(NSObject) 
- TurnOffKerning(NSObject) 
- TurnOffLigatures(NSObject) 
- UnmarkText() 
- UpdateCandidates() 
- UpdateDragTypeRegistration() 
- UpdateFontPanel() 
- UpdateInsertionPointStateAndRestartTimer(Boolean) 
- UpdateQuickLookPreviewPanel() 
- UpdateRuler() 
- UpdateTextTouchBarItems() 
- UpdateTouchBarItemIdentifiers() 
- UseAllLigatures(NSObject) 
- UseStandardKerning(NSObject) 
- UseStandardLigatures(NSObject) 
- ValidateMenuItem(NSMenuItem) 
- ValidateUserInterfaceItem(INSValidatedUserInterfaceItem) 
- ValidRequestorForSendType(String, String) 
- WritablePasteboardTypes() 
- WriteSelectionToPasteboard(NSPasteboard, String) 
- WriteSelectionToPasteboard(NSPasteboard, String[]) 
- CellClicked 
- CellDoubleClicked 
- DidChangeSelection 
- DidChangeTypingAttributes 
- DraggedCell 
- OrderFrontSharingServicePicker(NSTextView, NSObject) 
 
net9.0-macos14.2
    namespace AppKit
{
    [Register("NSTextView", true)]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public class NSTextView : NSText, INSAccessibilityElementProtocol, INSAccessibilityNavigableStaticText, INSAccessibilityStaticText, INSCandidateListTouchBarItemDelegate, INSColorChanging, INSDraggingSource, INSMenuItemValidation, INSTextContent, INSTextInput, INSTextInputClient, INSTextLayoutOrientationProvider, INSTouchBarDelegate, INSUserInterfaceValidations, INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("smartInsertAfterStringForString:replacingRange:")]
        public virtual string! SmartInsertAfter(string! pasteString, NSRange charRangeToReplace);
    }
}
            | .NET | 6.07.08.09.0 | 
|---|---|
| Information specific to net9.0 | |
| Platforms | This API is only available when you target a specific platform: | 
| macOS | 10.1410.1510.1611.011.111.211.312.012.112.313.013.113.314.014.2 | 
| Information specific to net9.0-macos14.2 | |
| Assembly | Microsoft.macOS , Version=14.2.0.0, PublicKeyToken=84e04ff9cfb79065 | 
| Referencing | The API is automatically referenced. | 
| Platform Restrictions | This API is only supported on the following platforms: 
 | 
- Built-in API
- Package-provided API