Share via


IContextMenu.SetHeaderTitle Method

Definition

Overloads

SetHeaderTitle(ICharSequence)

Sets the context menu header's title to the title given in <var>title</var>.

SetHeaderTitle(Int32)

Sets the context menu header's title to the title given in <var>titleRes</var> resource identifier.

SetHeaderTitle(ICharSequence)

Sets the context menu header's title to the title given in <var>title</var>.

[Android.Runtime.Register("setHeaderTitle", "(Ljava/lang/CharSequence;)Landroid/view/ContextMenu;", "GetSetHeaderTitle_Ljava_lang_CharSequence_Handler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IContextMenu? SetHeaderTitle (Java.Lang.ICharSequence? title);

Parameters

title
ICharSequence

The character sequence used for the title.

Returns

This ContextMenu so additional setters can be called.

Attributes

Remarks

Sets the context menu header's title to the title given in <var>title</var>.

Java documentation for android.view.ContextMenu.setHeaderTitle(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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

SetHeaderTitle(Int32)

Sets the context menu header's title to the title given in <var>titleRes</var> resource identifier.

[Android.Runtime.Register("setHeaderTitle", "(I)Landroid/view/ContextMenu;", "GetSetHeaderTitle_IHandler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IContextMenu? SetHeaderTitle (int titleRes);

Parameters

titleRes
Int32

The string resource identifier used for the title.

Returns

This ContextMenu so additional setters can be called.

Attributes

Remarks

Sets the context menu header's title to the title given in <var>titleRes</var> resource identifier.

Java documentation for android.view.ContextMenu.setHeaderTitle(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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35