Sunday, December 19, 2010

What do Babel, icons and Intellisense have in common?

When you are using Visual Studio Intellisense completion list, you must have observed a collection of icons as shown below
image%5B2%5D%5B3%5D.png?imgmax=800

There are 179 such icons and have you ever wondered what do all these icons mean? These are called Babel Icons and you can have different icons for a method depending on whether it is public, protected or private. Here’s a snapshot of these icons …
The Babel Package comes with a collection of icons that are used in the IntelliSense completion lists and in the drop-down bar used for quick navigation. Most of these icons are arranged in sets of six variations, where each variation corresponds to the access concepts of public, internal, friend, protected, private, and shortcut. For example, you can have different icons for a method depending on whether it is public, protected or private.
These icons are defined in babelservice.idl in the ScopeIconGroup and ScopeIconMisc enumerations. For example, to specify a protected method, you can use (IconGroupMethod * IconGroupSize) + IconItemProtected.

Read more: Greg's Cool [Insert Clever Name] of the Day