Udostępnij za pośrednictwem


TextAttribute.Background Property

Definition

Attribute key for the paint used to render the background of the text.

[Android.Runtime.Register("BACKGROUND")]
public static Java.Awt.Font.TextAttribute? Background { get; }
[<Android.Runtime.Register("BACKGROUND")>]
static member Background : Java.Awt.Font.TextAttribute

Property Value

Attributes

Remarks

Attribute key for the paint used to render the background of the text. Values are instances of <b>Paint</b>. The default value is null, indicating that the background should not be rendered.

The logical bounds of the text will be filled using this Paint, and then the text will be rendered on top of it (but see #SWAP_COLORS).

The visual bounds of the text is extended to include the logical bounds, if necessary. The outline is not affected.

Java documentation for java.awt.font.TextAttribute.BACKGROUND.

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