Custom Circle Callout


This samples shows how you can extend ArcObjects to build a new custom textbackground. ArcMap ships with several textbackgrounds including: Balloon Callout, Line Callout, Marker Text Background, and Simple Line Callout. This new textbackground is a Circle Line Callout and it is very similar to the Balloon callout except, like its name suggests, it is circle and for simplicity sake, its leader line is just a straight line. The image below shows an example:

How to use:
  1. Register the dll.
  2. Add TextCallouts.PropertyPage to the 'Text Background Property Pages' component category.
  3. Add TextCallouts.CircleCallout to the 'Text Backgrounds' component category.
  4. Add a text element onto your map.
  5. Right-click on the selected element and select 'Properties' from the context menu.
  6. Select 'Change Symbol'.
  7. Select 'Properties'.
  8. Select the 'Advanced Text' tab.
  9. Click on 'Text Background', then select its related 'Properties' button.
  10. In 'Type', select 'Circle Line Callout'.
  11. Its property sheet is displayed and from here you can set its size and color.
  12. Hit 'OK' on all subsequent dialogs to get back to ArcMap.


Difficulty: Intermediate

Visual Basic
File Description
CircleCallout.cls Class file for the custom textbackground.
Textcallouts.vbp The Visual Basic project file.
TextCallouts.dll The compiled project.

Key CoClasses: SimpleFillSymbol
Key Interfaces: ITextBackground, ICallout, IComPropertyPage, IPropertyPageContext