Class MenuTypeKind
- class ooodev.utils.kind.menu_type_kind.MenuTypeKind(value)[source]
Specifies the orientation of the control.
Similar to
com.sun.star.awt.MenuItemType
but the value are the integer representation of the enum.- static from_str(s)[source]
Gets an
MenuTypeKind
instance from string.- Parameters:
s (str) – String that represents the name of an enum Name.
- Raises:
ValueError – If input string is empty.
AttributeError – If unable to get
MenuTypeKind
instance.
- Returns:
Enum instance.
- Return type:
- DONTKNOW = 0
Specifies that the menu item type is unknown.
- IMAGE = 2
Specifies that the menu item has a text and an image.
- SEPARATOR = 4
Specifies that the menu item is a separator.
- STRING = 1
Specifies that the menu item has a text.
- STRINGIMAGE = 3
Specifies that the menu item has a text and an image.