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


IAnnotateFeature.Label Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IAnnotateFeature.Label Method

Labels a feature based on the properties given.

[Visual Basic .NET]
Public Sub Label ( _
    ByVal annoLayerProps As IAnnotateLayerProperties, _
    ByVal Feature As IFeature, _
    ByVal Display As IDisplay, _
    ByVal pSpatialRef As ISpatialReference, _
    ByVal barrierColl As IBarrierCollection, _
    ByRef placedElement As IElement, _
    ByRef unplacedElement As IElement _
)
[C#]
public void Label (
    IAnnotateLayerProperties annoLayerProps,
    IFeature Feature,
    IDisplay Display,
    ISpatialReference pSpatialRef,
    IBarrierCollection barrierColl,
    ref IElement placedElement,
    ref IElement unplacedElement
);
[C++]
HRESULT Label(
  IAnnotateLayerProperties* annoLayerProps,
  IFeature* Feature,
  IDisplay* Display,
  ISpatialReference* pSpatialRef,
  IBarrierCollection* barrierColl,
  IElement** placedElement,
  IElement** unplacedElement
);
[C++]

Parameters annoLayerProps [in]
annoLayerProps is a parameter of type IAnnotateLayerProperties* Feature [in]
Feature is a parameter of type IFeature* Display [in]
Display is a parameter of type IDisplay* pSpatialRef [in]
pSpatialRef is a parameter of type ISpatialReference* barrierColl [in]
barrierColl is a parameter of type IBarrierCollection* placedElement [out]
placedElement is a parameter of type IElement** unplacedElement [out]
unplacedElement is a parameter of type IElement**

Product Availability

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

See Also

IAnnotateFeature Interface