Langage

AttributedString Constructeurs

Définition

Surcharges

Nom Description
AttributedString(IAttributedCharacterIterator)

Construit une instance AttributedString avec le texte attribué donné représenté par AttributedCharacterIterator.

AttributedString(String)

Construit une instance AttributedString avec le texte donné.

AttributedString(IntPtr, JniHandleOwnership)

Constructeur utilisé lors de la création de représentations managées d’objets JNI ; appelée par le runtime.

AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)

Construit une instance AttributedString avec le texte et les attributs donnés.

AttributedString(IAttributedCharacterIterator, Int32, Int32)

Construit une instance AttributedString avec la sous-plage du texte attribué donné représenté par AttributedCharacterIterator.

AttributedString(IAttributedCharacterIterator, Int32, Int32, AttributedCharacterIteratorAttribute[])

Construit une instance AttributedString avec le texte donné.

AttributedString(IAttributedCharacterIterator)

Construit une instance AttributedString avec le texte attribué donné représenté par AttributedCharacterIterator.

[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;)V", "")]
public AttributedString(Java.Text.IAttributedCharacterIterator? text);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;)V", "")>]
new Java.Text.AttributedString : Java.Text.IAttributedCharacterIterator -> Java.Text.AttributedString

Paramètres

text
IAttributedCharacterIterator

Texte de cette chaîne attribuée.

Attributs

Remarques

Java documentation pour java.text.AttributedString.AttributedString(java.text.AttributedCharacterIterator).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

AttributedString(String)

Construit une instance AttributedString avec le texte donné.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public AttributedString(string? text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Text.AttributedString : string -> Java.Text.AttributedString

Paramètres

text
String

Texte de cette chaîne attribuée.

Attributs

Remarques

Java documentation pour java.text.AttributedString.AttributedString(java.lang.String).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

AttributedString(IntPtr, JniHandleOwnership)

Constructeur utilisé lors de la création de représentations managées d’objets JNI ; appelée par le runtime.

protected AttributedString(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Text.AttributedString : nativeint * Android.Runtime.JniHandleOwnership -> Java.Text.AttributedString

Paramètres

javaReference
IntPtr

nativeint

Contenant IntPtrune référence d’objet Java Native Interface (JNI).

transfer
JniHandleOwnership

Indiquant JniHandleOwnershipcomment gérer javaReference

Remarques

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)

Construit une instance AttributedString avec le texte et les attributs donnés.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Map;)V", "")]
public AttributedString(string? text, System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute,object>? attributes);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Map;)V", "")>]
new Java.Text.AttributedString : string * System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute, obj> -> Java.Text.AttributedString

Paramètres

text
String

Texte de cette chaîne attribuée.

attributes
IDictionary<AttributedCharacterIteratorAttribute,Object>

Attributs qui s’appliquent à la chaîne entière.

Attributs

Remarques

Java documentation pour java.text.AttributedString.AttributedString(java.lang.String, java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute, ?>).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

AttributedString(IAttributedCharacterIterator, Int32, Int32)

Construit une instance AttributedString avec la sous-plage du texte attribué donné représenté par AttributedCharacterIterator.

[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II)V", "")]
public AttributedString(Java.Text.IAttributedCharacterIterator? text, int beginIndex, int endIndex);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II)V", "")>]
new Java.Text.AttributedString : Java.Text.IAttributedCharacterIterator * int * int -> Java.Text.AttributedString

Paramètres

text
IAttributedCharacterIterator

Texte de cette chaîne attribuée.

beginIndex
Int32

Index du premier caractère de la plage.

endIndex
Int32

Index du caractère suivant le dernier caractère de la plage.

Attributs

Exceptions

s’il start est inférieur à l’index premier de iterator, end est supérieur au dernier index + 1 dans iterator ou si start > end.

Remarques

Java documentation pour java.text.AttributedString.AttributedString(java.text.AttributedCharacterIterator, int, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

AttributedString(IAttributedCharacterIterator, Int32, Int32, AttributedCharacterIteratorAttribute[])

Construit une instance AttributedString avec le texte donné.

[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II[Ljava/text/AttributedCharacterIterator$Attribute;)V", "")]
public AttributedString(Java.Text.IAttributedCharacterIterator? text, int beginIndex, int endIndex, Java.Text.AttributedCharacterIteratorAttribute[]? attributes);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;II[Ljava/text/AttributedCharacterIterator$Attribute;)V", "")>]
new Java.Text.AttributedString : Java.Text.IAttributedCharacterIterator * int * int * Java.Text.AttributedCharacterIteratorAttribute[] -> Java.Text.AttributedString

Paramètres

text
IAttributedCharacterIterator

Texte de cette chaîne attribuée.

beginIndex
Int32
endIndex
Int32
Attributs

Exceptions

s’il start est inférieur à l’index premier de iterator, end est supérieur au dernier index + 1 dans iterator ou si start > end.

Remarques

Java documentation pour java.text.AttributedString.AttributedString(java.lang.String).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à