ArcObjects Library Reference (Carto)  

IAnnotateFeature2.Label Method

Labels a feature based on the properties given.

[Visual Basic .NET]
Public Sub Label ( _
    ByVal overposterProps As IOverposterProperties, _
    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 (
    IOverposterProperties overposterProps,
    IAnnotateLayerProperties annoLayerProps,
    IFeature Feature,
    IDisplay Display,
    ISpatialReference pSpatialRef,
    IBarrierCollection barrierColl,
    ref IElement placedElement,
    ref IElement unplacedElement
);
[C++]
HRESULT Label(
  IOverposterProperties* overposterProps,
  IAnnotateLayerProperties* annoLayerProps,
  IFeature* Feature,
  IDisplay* Display,
  ISpatialReference* pSpatialRef,
  IBarrierCollection* barrierColl,
  IElement** placedElement,
  IElement** unplacedElement
);
[C++]

Parameters

overposterProps [in]

  overposterProps is a parameter of type IOverposterProperties

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

IAnnotateFeature2 Interface