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


IOverposter2.AddLabel Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IO > IOverposter2 Interface > IOverposter2.AddLabel Method
ArcGIS Developer Help

IOverposter2.AddLabel Method

Adds a label object to be placed.

[Visual Basic .NET]
Public Sub AddLabel ( _
    ByVal ClassIndex As Integer, _
    ByVal Label As String, _
    ByVal Width As Double, _
    ByVal Height As Double, _
    ByVal ControlShape As IGeometry, _
    ByVal FeatureId As Integer, _
    ByVal Symbol As ISymbol _
)
[C#]
public void AddLabel (
    int ClassIndex,
    string Label,
    double Width,
    double Height,
    IGeometry ControlShape,
    int FeatureId,
    ISymbol Symbol
);
[C++]
HRESULT AddLabel(
  long ClassIndex,
  BSTR Label,
  double Width,
  double Height,
  IGeometry* ControlShape,
  long FeatureId,
  ISymbol* Symbol
);
[C++]
Parameters
ClassIndex [in]

ClassIndex is a parameter of type long Label [in]
Label is a parameter of type BSTR Width [in]
Width is a parameter of type double Height [in]
Height is a parameter of type double ControlShape [in]
ControlShape is a parameter of type IGeometry* FeatureId [in]
FeatureId is a parameter of type long Symbol [in]
Symbol is a parameter of type ISymbol*

Product Availability

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

See Also

IOverposter2 Interface