Share via


NSTextLayoutManager.ReplaceContents Method

Definition

Overloads

ReplaceContents(NSTextRange, NSAttributedString)

[Foundation.Export("replaceContentsInRange:withAttributedString:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void ReplaceContents(AppKit.NSTextRange range, Foundation.NSAttributedString attributedString);
[<Foundation.Export("replaceContentsInRange:withAttributedString:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReplaceContents : AppKit.NSTextRange * Foundation.NSAttributedString -> unit
override this.ReplaceContents : AppKit.NSTextRange * Foundation.NSAttributedString -> unit

Parameters

range
NSTextRange
attributedString
NSAttributedString
Attributes

Applies to

ReplaceContents(NSTextRange, NSTextElement[])

[Foundation.Export("replaceContentsInRange:withTextElements:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void ReplaceContents(AppKit.NSTextRange range, AppKit.NSTextElement[] textElements);
[<Foundation.Export("replaceContentsInRange:withTextElements:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReplaceContents : AppKit.NSTextRange * AppKit.NSTextElement[] -> unit
override this.ReplaceContents : AppKit.NSTextRange * AppKit.NSTextElement[] -> unit

Parameters

range
NSTextRange
textElements
NSTextElement[]
Attributes

Applies to