Validates that an object is of a given type.
propertyName The name of the property to validate.value Optional value against which to validate.expectedType The expected type of the property.allowNull true to allow null; otherwise, false.
The ToolboxItem.ValidatePropertyType(string, object, Type, bool) method is called as a helper method to the ToolboxItem.ValidatePropertyValue(string, object) method.