編輯

共用方式為


NSMutableAttributedString.Insert(NSAttributedString, nint) Method

Definition

Inserts an attributed string into the current string.

[Foundation.Export("insertAttributedString:atIndex:")]
public virtual void Insert (Foundation.NSAttributedString attrString, nint location);
abstract member Insert : Foundation.NSAttributedString * nint -> unit
override this.Insert : Foundation.NSAttributedString * nint -> unit

Parameters

attrString
NSAttributedString

Attributed string to insert.

location
System.System.IntPtr System.nativeint

Location where the string will be inserted.

Attributes

Remarks

Any attributes that spanned the insertion point will be expanded, so they will continue to cover both the original text as well as the new text.

Applies to