次の方法で共有


CharacterStyle.Wrap(CharacterStyle) Method

Definition

A given CharacterStyle can only applied to a single region of a given Spanned.

[Android.Runtime.Register("wrap", "(Landroid/text/style/CharacterStyle;)Landroid/text/style/CharacterStyle;", "")]
public static Android.Text.Style.CharacterStyle? Wrap (Android.Text.Style.CharacterStyle? cs);
[<Android.Runtime.Register("wrap", "(Landroid/text/style/CharacterStyle;)Landroid/text/style/CharacterStyle;", "")>]
static member Wrap : Android.Text.Style.CharacterStyle -> Android.Text.Style.CharacterStyle

Parameters

Returns

Attributes

Remarks

A given CharacterStyle can only applied to a single region of a given Spanned. If you need to attach the same CharacterStyle to multiple regions, you can use this method to wrap it with a new object that will have the same effect but be a distinct object so that it can also be attached without conflict.

Java documentation for android.text.style.CharacterStyle.wrap(android.text.style.CharacterStyle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to