CommandLocationListExtensionMethodsConfigurationMenu Method |
Namespace:
MFiles.VAF.Configuration.AdminConfigurations
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic static List<ICommandLocation> ConfigurationMenu(
this List<ICommandLocation> commandList,
int priority = 0,
string icon = null,
bool separatorBefore = false,
bool noSeparatorAfter = false
)
<ExtensionAttribute>
Public Shared Function ConfigurationMenu (
commandList As List(Of ICommandLocation),
Optional priority As Integer = 0,
Optional icon As String = Nothing,
Optional separatorBefore As Boolean = false,
Optional noSeparatorAfter As Boolean = false
) As List(Of ICommandLocation)
public:
[ExtensionAttribute]
static List<ICommandLocation^>^ ConfigurationMenu(
List<ICommandLocation^>^ commandList,
int priority = 0,
String^ icon = nullptr,
bool separatorBefore = false,
bool noSeparatorAfter = false
)
Parameters
- commandList
- Type: System.Collections.GenericListICommandLocation
The list to add the location to. - priority (Optional)
- Type: SystemInt32
Determines the command button's location inside the menu. - icon (Optional)
- Type: SystemString
The name of the icon that will be shown next to the menu item.
Use the values defined in MenuIcon.
- separatorBefore (Optional)
- Type: SystemBoolean
Creates a separator before this menu item. - noSeparatorAfter (Optional)
- Type: SystemBoolean
Prevents any line separators from being drawn after this item.
Return Value
Type:
ListICommandLocationThe command list, for chaining.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListICommandLocation. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also