The Annotation component can be used to display objects selectively at run time by using layers. One can create logical layers. For example Layer 1 and 2 are displayable and layer 3 and 4 are not displayable. Use the SetLayers method to define which layer is displayable. One can make multiple displayable layers, such as 1 and 2. Use the SelectLayer to define which layer the object belongs to. Use the AnnoObjSetLayer method to change the layer assignment of an object at run time. For example, cover a certain part of a document based on the user view privilege. The AnnoUIOnPaint will display only the objects in viewable layers.