Share via


Dialog.SetTitle Method

Definition

Overloads

SetTitle(ICharSequence)

Set the title text for this dialog's window.

SetTitle(Int32)

Set the title text for this dialog's window.

SetTitle(String)

Set the title text for this dialog's window.

SetTitle(ICharSequence)

Set the title text for this dialog's window.

[Android.Runtime.Register("setTitle", "(Ljava/lang/CharSequence;)V", "GetSetTitle_Ljava_lang_CharSequence_Handler")]
public virtual void SetTitle (Java.Lang.ICharSequence? title);
[<Android.Runtime.Register("setTitle", "(Ljava/lang/CharSequence;)V", "GetSetTitle_Ljava_lang_CharSequence_Handler")>]
abstract member SetTitle : Java.Lang.ICharSequence -> unit
override this.SetTitle : Java.Lang.ICharSequence -> unit

Parameters

title
ICharSequence

The new text to display in the title.

Attributes

Remarks

Set the title text for this dialog's window.

Java documentation for android.app.Dialog.setTitle(java.lang.CharSequence).

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 text for this dialog's window.

[Android.Runtime.Register("setTitle", "(I)V", "GetSetTitle_IHandler")]
public virtual void SetTitle (int titleId);
[<Android.Runtime.Register("setTitle", "(I)V", "GetSetTitle_IHandler")>]
abstract member SetTitle : int -> unit
override this.SetTitle : int -> unit

Parameters

titleId
Int32

the title's text resource identifier

Attributes

Remarks

Set the title text for this dialog's window. The text is retrieved from the resources with the supplied identifier.

Java documentation for android.app.Dialog.setTitle(int).

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 text for this dialog's window.

public void SetTitle (string? title);
member this.SetTitle : string -> unit

Parameters

title
String

The new text to display in the title.

Remarks

Set the title text for this dialog's window.

Java documentation for android.app.Dialog.setTitle(java.lang.CharSequence).

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