Language

AlertDialog.Builder.SetTitle Method

Definition

Overloads

Name Description
SetTitle(ICharSequence)

Set the title displayed in the Dialog.

SetTitle(Int32)

Set the title using the given resource id.

SetTitle(String)

Set the title displayed in the Dialog.

SetTitle(ICharSequence)

Set the title displayed in the Dialog.

[Android.Runtime.Register("setTitle", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;", "GetSetTitle_Ljava_lang_CharSequence_Handler")]
public virtual Android.App.AlertDialog.Builder SetTitle(Java.Lang.ICharSequence title);
[<Android.Runtime.Register("setTitle", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;", "GetSetTitle_Ljava_lang_CharSequence_Handler")>]
abstract member SetTitle : Java.Lang.ICharSequence -> Android.App.AlertDialog.Builder
override this.SetTitle : Java.Lang.ICharSequence -> Android.App.AlertDialog.Builder

Parameters

title
ICharSequence

CharSequence

Returns

This Builder object to allow for chaining of calls to set methods

Attributes

Remarks

Set the title displayed in the Dialog.

Android reference for android.app.AlertDialog.Builder.setTitle.

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

SetTitle(Int32)

Set the title using the given resource id.

[Android.Runtime.Register("setTitle", "(I)Landroid/app/AlertDialog$Builder;", "GetSetTitle_IHandler")]
public virtual Android.App.AlertDialog.Builder SetTitle(int titleId);
[<Android.Runtime.Register("setTitle", "(I)Landroid/app/AlertDialog$Builder;", "GetSetTitle_IHandler")>]
abstract member SetTitle : int -> Android.App.AlertDialog.Builder
override this.SetTitle : int -> Android.App.AlertDialog.Builder

Parameters

titleId
Int32

int

Returns

This Builder object to allow for chaining of calls to set methods

Attributes

Remarks

Set the title using the given resource id.

Android reference for android.app.AlertDialog.Builder.setTitle.

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

SetTitle(String)

Set the title displayed in the Dialog.

public Android.App.AlertDialog.Builder SetTitle(string title);
member this.SetTitle : string -> Android.App.AlertDialog.Builder

Parameters

title
String

CharSequence

Returns

This Builder object to allow for chaining of calls to set methods

Remarks

Set the title displayed in the Dialog.

Android reference for android.app.AlertDialog.Builder.setTitle.

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