def METHOD_NAME(self):
    # Write the <autoFilter> element.
    autofilter = self.properties.get("autofilter", 0)
    if not autofilter:
        return
    attributes = [
        (
            "ref",
            autofilter,
        )
    ]
    self._xml_empty_tag("autoFilter", attributes)