# SalMenuItem

Namespace: **PPJ.Runtime.Windows**

Assembly: **PPJ.Runtime.49** (4.9.0.0)

Implementation of SalMenuItem. Extends the default MenuItem in .NET to support SAL menu events and to support fonts and images.

{% tabs %}
{% tab title="C#" %}

```csharp
public class SalMenuItem : MenuItem, ISalMenu
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SalMenuItem
    Inherits MenuItem
    Implements ISalMenu
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/dBIrS7XBDGmrzmTRbSI6)SalMenuItem()

Constructs a new SalMenuItem.

## Properties

### ![](/files/dBIrS7XBDGmrzmTRbSI6)Font

![](/files/SXlaSjcvpRtdq1MmXr0i)**Deprecated**: [Font](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.font): Returns/Sets the font for the menu item. (Default: `null`)

### ![](/files/dBIrS7XBDGmrzmTRbSI6)Image

[Image](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image): Returns/Sets the image to paint next to menu items. (Default: `null`)

### ![](/files/dBIrS7XBDGmrzmTRbSI6)ImageName

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Image name. Name of the image to load from the embedded resources. (Default: `""`)

### ![](/files/dBIrS7XBDGmrzmTRbSI6)ImageNormal

![](/files/SXlaSjcvpRtdq1MmXr0i)**Deprecated**: [Image](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image): Returns/Sets the image to paint next to menu items. (Default: `null`)

### ![](/files/dBIrS7XBDGmrzmTRbSI6)ImageSelected

![](/files/SXlaSjcvpRtdq1MmXr0i)**Deprecated**: [Image](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image): Returns/Sets the image to paint next to selected menu items. (Default: `null`)

### ![](/files/dBIrS7XBDGmrzmTRbSI6)MenuID

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the internal menu ID assigned to the menu item.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)Owner

[Control](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control): Owner of menu item.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)StatusText

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): The status text to display in the status bar when the menu item is selected. (Default: `""`)

## Methods

### ![](/files/dBIrS7XBDGmrzmTRbSI6)CloneMenu()

Overrides the CloneMenu method to duplicate event handlers.

**Returns:** [MenuItem](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.menuitem).

### ![](/files/dBIrS7XBDGmrzmTRbSI6)MergeMenu()

Overrides the MergeMenu method to duplicate event handlers.

**Returns:** [MenuItem](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.menuitem).

## Events

### ![](/files/dBIrS7XBDGmrzmTRbSI6)CheckedWhen

[SalMenuCheckedWhenHandler](/ppj.runtime.49/menus/ppj.runtime.windows.salmenuitem.md) CheckedWhen event.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)EnabledWhen

[SalMenuEnabledWhenHandler](/ppj.runtime.49/menus/ppj.runtime.windows.salmenuitem.md) EnabledWhen event.

### ![](/files/dBIrS7XBDGmrzmTRbSI6)MenuActions

[SalMenuActionsHandler](/ppj.runtime.49/menus/ppj.runtime.windows.salmenuitem.md) MenuActions event.

## Implements

| Name                                                                 | Description                                                                                                                   |
| -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| [ISalMenu](/ppj.runtime.49/menus/ppj.runtime.windows.salmenuitem.md) | All Sal menu types implement this interface. It is used to let the framework query for common properties like the StatusText. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desktop-api.iceteagroup.com/ppj.runtime.49/menus/ppj.runtime.windows.salmenuitem.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
