IMenuDesignAPI
Interfacepublic interface IMenuDesignAPIMethods
Disables automatic adjustment of visible items when title or footer is hidden.
IMenuBuilderAPI DisableAutoAdjustVisibleItems()Enables automatic adjustment of visible items when title or footer is hidden.
IMenuBuilderAPI EnableAutoAdjustVisibleItems()When enabled, hiding the title or footer will increase the effective visible item count during rendering without modifying the configured Int32) value.
Controls the visibility of menu option comments.
IMenuBuilderAPI SetCommentVisible(bool visible = true)- visiblebooloptionalTrue to show comments, false to hide them. Default is true.
Sets the default comment text to use when a menu option's Comment is not set.
IMenuBuilderAPI SetDefaultComment(string comment)- commentstringThe default comment text.
Sets the color of disabled menu options using hex color format.
IMenuBuilderAPI SetDisabledColor(string? hexColor = null)- hexColorstring?optionalThe color in hex format (e.g., "#808080" for gray). Pass null to reset to default.
Sets the color of disabled menu options using SwiftlyS2 native color.
IMenuBuilderAPI SetDisabledColor(Color color)- colorColorThe SwiftlyS2 native color to apply to disabled options.
Sets the color of disabled menu options using System.Drawing color.
IMenuBuilderAPI SetDisabledColor(Color color)- colorColorThe System.Drawing color to apply to disabled options.
Sets the default scroll animation style for all menu options.
IMenuBuilderAPI SetGlobalScrollStyle(MenuOptionScrollStyle style)- styleMenuOptionScrollStyleThe scroll style to apply globally.
Individual options can override this global setting.
Sets the maximum number of menu options visible on screen at once.
IMenuBuilderAPI SetMaxVisibleItems(int count = 5)- countintoptionalThe maximum visible item count. Valid range is 1-5. Default is 5.
Values outside the range of 1-5 will be automatically clamped to the nearest valid value. Menus with more options than this limit will be paginated.
Sets the color of the menu footer using hex color format.
IMenuBuilderAPI SetMenuFooterColor(string? hexColor = null)- hexColorstring?optionalThe color in hex format (e.g., "#FF0000" for red). Pass null to reset to default.
Sets the color of the menu footer using SwiftlyS2 native color.
IMenuBuilderAPI SetMenuFooterColor(Color color)- colorColorThe SwiftlyS2 native color to apply to the footer.
Sets the color of the menu footer using System.Drawing color.
IMenuBuilderAPI SetMenuFooterColor(Color color)- colorColorThe System.Drawing color to apply to the footer.
Controls the visibility of the menu footer.
IMenuBuilderAPI SetMenuFooterVisible(bool visible = true)- visiblebooloptionalTrue to show the footer, false to hide it. Default is true.
Sets the title text displayed at the top of the menu.
IMenuBuilderAPI SetMenuTitle(string? title = null)- titlestring?optionalThe title text. Pass null to clear the title.
Controls the visibility of the item count in the menu title.
IMenuBuilderAPI SetMenuTitleItemCountVisible(bool visible = true)- visiblebooloptionalTrue to show the item count, false to hide it. Default is true.
Controls the visibility of the menu title.
IMenuBuilderAPI SetMenuTitleVisible(bool visible = true)- visiblebooloptionalTrue to show the title, false to hide it. Default is true.
Sets the color of the navigation markers using hex color format.
IMenuBuilderAPI SetNavigationMarkerColor(string? hexColor = null)- hexColorstring?optionalThe color in hex format (e.g., "#FFFFFF" for white). Pass null to reset to default.
Sets the color of the navigation markers using SwiftlyS2 native color.
IMenuBuilderAPI SetNavigationMarkerColor(Color color)- colorColorThe SwiftlyS2 native color to apply to the navigation markers.
Sets the color of the navigation markers using System.Drawing color.
IMenuBuilderAPI SetNavigationMarkerColor(Color color)- colorColorThe System.Drawing color to apply to the navigation markers.
Sets the color of the visual guide lines using hex color format.
IMenuBuilderAPI SetVisualGuideLineColor(string? hexColor = null)- hexColorstring?optionalThe color in hex format (e.g., "#FFFFFF" for white). Pass null to reset to default.
Sets the color of the visual guide lines using SwiftlyS2 native color.
IMenuBuilderAPI SetVisualGuideLineColor(Color color)- colorColorThe SwiftlyS2 native color to apply to the guide lines.
Sets the color of the visual guide lines using System.Drawing color.
IMenuBuilderAPI SetVisualGuideLineColor(Color color)- colorColorThe System.Drawing color to apply to the guide lines.