Share via


AlertDialog.Builder.SetTitle Method

Definition

Overloads

SetTitle(ICharSequence)

Set the title displayed in the Dialog.

SetTitle(Int32)

Set the title using the given resource id.

SetTitle(String)

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

Returns

Attributes

Remarks

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

Returns

Attributes

Remarks

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)

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

Parameters

title
String

Returns

Remarks

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