IContextMenu.SetHeaderTitle Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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);
[<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")>]
abstract member SetHeaderTitle : Java.Lang.ICharSequence -> Android.Views.IContextMenu
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 |
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);
[<Android.Runtime.Register("setHeaderTitle", "(I)Landroid/view/ContextMenu;", "GetSetHeaderTitle_IHandler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetHeaderTitle : int -> Android.Views.IContextMenu
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 |