Help Center

ObjectTypeIsValidfunction

Determines whether an element of the **ObjectType** enumeration represents a valid object type.

Graphicsfunctiondocumented

Syntax

PRIVATE FUNCTION ObjectTypeIsValid (BYVAL type_ as ObjectType) AS BOOLEAN

Parameters

NameDescription
type[in] Element of the ObjectType enumeration to be tested.

Return value

If objectType is equal to ObjectTypeInvalid, this function returns FALSE.

If objectType is equal to any other element of the ObjectType enumeration, this function returns TRUE.

Description

The ObjectTypeIsValid function determines whether an element of the ObjectType enumeration represents a valid object type.

Example

FUNCTION ObjectTypeIsValid (BYVAL type_ as ObjectType) AS BOOLEAN FUNCTION = -((type_ >= ObjectTypeMin) AND (type_ <= ObjectTypeMax)) END FUNCTION

Reference

  • Defined in AfxNova/AfxGdiPlus.bi:790
  • Documented in Graphics/GdiPlus Flat Api/GdiPlus Flat Api.md
  • Topic: About GDI+