ArcObjects Library Reference  (Carto)    

ILayerPosition.LayerWeight Property

Default layer position.

[Visual Basic 6.0]
Property LayerWeight As Double
[Visual Basic .NET]
Public Property LayerWeight As Double
[C#]
public double LayerWeight {get; set;}
[Java]
public Double getLayerWeight()
throws
    IOException,
    AutomationException
[Java]
public void setLayerWeight(
Double LayerWeight
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_LayerWeight(
  double* LayerWeight
);
[C++]
HRESULT put_LayerWeight(
  double LayerWeight

);

[C++]

Parameters

LayerWeight [out, retval]

  LayerWeight is a parameter of type double

LayerWeight [in]

  LayerWeight is a parameter of type double

Product Availability

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

Description

The LayerWeight property defines the weight of the layer in the auto arrange order.   During auto arrange, the higher weight layers are added to the map first, which means they draw lower in the draw order.


Default weights for layers are these values:
Annotation layers = 97
Points layers = 98
Polyline layers = 99
Polygon Layers = 100

See Also

ILayerPosition Interface