Class SearchByKind

class ooodev.utils.kind.gallery_search_by_kind.SearchByKind(value)[source]

Gallery Search by Kind.

Used to determine search criteria.

See also

Gallery.find_gallery_item()

static from_str(s)[source]

Gets an SearchByKind instance from string.

Parameters:

s (str) – String that represents the name of an enum Name. s is case insensitive and can be CamelCase, pascal_case , snake_case, hyphen-case, normal case.

Raises:
  • ValueError – If input string is empty.

  • AttributeError – If unable to get SearchByKind instance.

Returns:

Enum instance.

Return type:

SearchByKind

FILE_NAME = 1

Match File Name

TITLE = 2

Match Title