NSTextView.ShouldChangeText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ShouldChangeText(NSArray, String[]) | |
| ShouldChangeText(NSRange, String) |
ShouldChangeText(NSArray, String[])
[Foundation.Export("shouldChangeTextInRanges:replacementStrings:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldChangeText(Foundation.NSArray affectedRanges, string[] replacementStrings);
[Foundation.Export("shouldChangeTextInRanges:replacementStrings:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldChangeText(Foundation.NSArray affectedRanges, string[]? replacementStrings);
[<Foundation.Export("shouldChangeTextInRanges:replacementStrings:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ShouldChangeText : Foundation.NSArray * string[] -> bool
override this.ShouldChangeText : Foundation.NSArray * string[] -> bool
Parameters
- affectedRanges
- NSArray
- replacementStrings
- String[]
Returns
- Attributes
Applies to
ShouldChangeText(NSRange, String)
[Foundation.Export("shouldChangeTextInRange:replacementString:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldChangeText(Foundation.NSRange affectedCharRange, string replacementString);
[Foundation.Export("shouldChangeTextInRange:replacementString:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldChangeText(Foundation.NSRange affectedCharRange, string? replacementString);
[<Foundation.Export("shouldChangeTextInRange:replacementString:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ShouldChangeText : Foundation.NSRange * string -> bool
override this.ShouldChangeText : Foundation.NSRange * string -> bool
Parameters
- affectedCharRange
- NSRange
- replacementString
- String
Returns
- Attributes