Open this page in the API Guide

RulerAdorner.dispose Method

Performs tasks associated with releasing resources from this object once it is unneeded.