Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
WPF Annotation Object Headers

Note: This topic is for Document/Medical only.

LEADTOOLS provides functionality for displaying a "header" for each annotation object. An object header is one way of differentiating between multiple objects in a container. LEADTOOLS does not use the object header in any special way and the value has no special meaning. The following properties help you control annotation object headers: Whenever the OnRender is called, it calls the the RenderObject method to draw the object itself (if the Visibility property is Visible), the RenderHeader method to draw the header of the object (if the IsHeaderVisible property is true) and then finally the RenderLocked method to draw the locked object (if the object is currently locked). You can restrict the header. If a header is restricted, then it will fully appear on the image. By restricting the header, the offsets used to position the header are therefore limited, based on the header of The WPF annotation object and the font that is being used. Set the value of the IsHeaderRestricted property to true to restrict the header to appear fully within the bounding rectangle of the Container and then call the RestrictHeader method to move the header (by changing the HeaderOffset property so the header will be restricted to appear fully within the Width and Height properties of the AnnContainer that contains this AnnObjectBase).