This document is archived and information here might be outdated.  Recommended version.


IMapDescription.CustomGraphics Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapDescription.CustomGraphics Property

Custom graphics.

[Visual Basic .NET]
Public Property CustomGraphics As IGraphicElements
[C#]
public IGraphicElements CustomGraphics {get; set;}
[C++]
HRESULT get_CustomGraphics(
  IGraphicElements** Elements
);
[C++]
HRESULT put_CustomGraphics(
  IGraphicElements* Elements
);
[C++]

Parameters Elements [out, retval]
Elements is a parameter of type IGraphicElements** Elements [in]
Elements is a parameter of type IGraphicElements*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Use CustomGraphics to display text or geometric shapes on the map. When interacting with the display of labels, CustomGraphics will honor the Feature Weight value for the default graphics layer set in the Label Weight Ranking dialog in the map document. A setting of High, the ArcMap default, will result in labels not drawing within the bounds of the custom graphics. If the Feature Weight for the default graphics layer is None, Low or Medium labels will draw within the bounds of the custom graphics. With None, all labels should display. With Low or Medium, the amount of labels that draw may vary.

Please note that the optimized MapServer only supports the esriSFSSolid style of ISimpleFillSymbol. For other types of fills, use other fill symbol types such as ILineSymbol.   For hollow symbols, you should use IColor::NullColor with esriSFSSolid instead of using the esriSFSNull style.

See Also

IMapDescription Interface