FileMenuItem Enumeration
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
Description
Each FileMenuItem represents the identifier for a file menu item. The string conversion of each FileMenuItem can be passed as an identifier to static ResourceProvider methods to receive bitmaps or strings that are associated with the corresponding file menu item.
Syntax
public enum ResourceProvider.FileMenuItemPublic Enum ResourceProvider.FileMenuItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_New | 0 | Represents the TXITEM_New file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_Open | 1 | Represents the TXITEM_Open file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_Save | 2 | Represents the TXITEM_Save file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_SaveAs | 3 | Represents the TXITEM_SaveAs file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_Print | 4 | Represents the TXITEM_Print file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_PrintQuick | 5 | Represents the TXITEM_PrintQuick file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_PrintPreview | 6 | Represents the TXITEM_PrintPreview file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_Options | 7 | Represents the TXITEM_Options file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_UserAdministration | 8 | Represents the TXITEM_UserAdministration file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_GrantUserAccess | 9 | Represents the TXITEM_GrantUserAccess file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_About | 10 | Represents the TXITEM_About file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_Exit | 11 | Represents the TXITEM_Exit file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_DocumentSettings | 12 | Represents the TXITEM_DocumentSettings file menu item. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_SignIn | 13 | Not described in the reference. |
| TXITEM_CurrentUser | 14 | Not described in the reference. |
| TXITEM_AccountSettings | 15 | Not described in the reference. |
| TXITEM_SignOut | 16 | Not described in the reference. |
Examples
The following example selects the TXITEM_New value from the File Menu Item enumeration and uses it as a documented workflow choice.
TXTextControl.WPF.ResourceProvider.FileMenuItem value = TXTextControl.WPF.ResourceProvider.FileMenuItem.TXITEM_New;
Console.WriteLine($"Using File Menu Item: {value}");Dim value As TXTextControl.WPF.ResourceProvider.FileMenuItem = TXTextControl.WPF.ResourceProvider.FileMenuItem.TXITEM_New
Console.WriteLine($"Using File Menu Item: {value}")