AttributedString Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AttributedString(IAttributedCharacterIterator) |
Constrói uma ocorrência de AttributedString com o texto atribuído fornecido representado por AttributedCharacterIterator. |
AttributedString(String) |
Constrói uma ocorrência de AttributedString com o texto fornecido. |
AttributedString(IntPtr, JniHandleOwnership) |
Um construtor usado ao criar representações gerenciadas de objetos JNI; chamado pelo tempo de execução. |
AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>) |
Constrói uma ocorrência de AttributedString com o texto e os atributos fornecidos. |
AttributedString(IAttributedCharacterIterator, Int32, Int32) |
Constrói uma ocorrência de AttributedString com o subintervalo do texto atribuído fornecido representado por AttributedCharacterIterator. |
AttributedString(IAttributedCharacterIterator, Int32, Int32, AttributedCharacterIteratorAttribute[]) |
Constrói uma ocorrência de AttributedString com o texto fornecido. |
AttributedString(IAttributedCharacterIterator)
Constrói uma ocorrência de AttributedString com o texto atribuído fornecido representado por 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
Parâmetros
O texto para essa cadeia de caracteres atribuída.
- Atributos
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.
Aplica-se a
AttributedString(String)
Constrói uma ocorrência de AttributedString com o texto fornecido.
[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
Parâmetros
- text
- String
O texto para essa cadeia de caracteres atribuída.
- Atributos
Comentários
Documentação Java para java.text.AttributedString.AttributedString(java.lang.String)
.
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.
Aplica-se a
AttributedString(IntPtr, JniHandleOwnership)
Um construtor usado ao criar representações gerenciadas de objetos JNI; chamado pelo tempo de execução.
protected AttributedString (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Text.AttributedString : nativeint * Android.Runtime.JniHandleOwnership -> Java.Text.AttributedString
Parâmetros
- javaReference
-
IntPtr
nativeint
Um IntPtrque contém uma referência de objeto JNI (Java Native Interface).
- transfer
- JniHandleOwnership
Uma JniHandleOwnershipindicação de como lidar javaReference
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.
Aplica-se a
AttributedString(String, IDictionary<AttributedCharacterIteratorAttribute,Object>)
Constrói uma ocorrência de AttributedString com o texto e os atributos fornecidos.
[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
Parâmetros
- text
- String
O texto para essa cadeia de caracteres atribuída.
- attributes
- IDictionary<AttributedCharacterIteratorAttribute,Object>
Os atributos que se aplicam à cadeia de caracteres inteira.
- Atributos
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.
Aplica-se a
AttributedString(IAttributedCharacterIterator, Int32, Int32)
Constrói uma ocorrência de AttributedString com o subintervalo do texto atribuído fornecido representado por 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
Parâmetros
O texto para essa cadeia de caracteres atribuída.
- beginIndex
- Int32
Índice do primeiro caractere do intervalo.
- endIndex
- Int32
Índice do caractere após o último caractere do intervalo.
- Atributos
Exceções
se start
for menor que o primeiro índice de iterator
, end
for maior que o último índice + 1 em iterator
ou se start > end
.
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.
Aplica-se a
AttributedString(IAttributedCharacterIterator, Int32, Int32, AttributedCharacterIteratorAttribute[])
Constrói uma ocorrência de AttributedString com o texto fornecido.
[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
Parâmetros
O texto para essa cadeia de caracteres atribuída.
- beginIndex
- Int32
- endIndex
- Int32
- attributes
- AttributedCharacterIteratorAttribute[]
- Atributos
Exceções
se start
for menor que o primeiro índice de iterator
, end
for maior que o último índice + 1 em iterator
ou se start > end
.
Comentários
Documentação Java para java.text.AttributedString.AttributedString(java.lang.String)
.
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.