ArcObjects Library Reference (GlobeCore)  

IGlobe.GlobeLayers Property

The globe layers by UID and internal grouping.

[Visual Basic .NET]
Public Function get_GlobeLayers ( _
    ByVal pUid As UID, _
    ByVal bRecursive As Boolean, _
    ByVal bInBaseGlobe As Boolean, _
    ByVal bSortedByDrawingPriority As Boolean _
) As IEnumLayer
public IEnumLayer get_GlobeLayers (
    UID pUid,
    bool bRecursive,
    bool bInBaseGlobe,
    bool bSortedByDrawingPriority
HRESULT get_GlobeLayers(
  IUID* pUid,
  VARIANT_BOOL bRecursive,
  VARIANT_BOOL bInBaseGlobe,
  VARIANT_BOOL bSortedByDrawingPriority,
  IEnumLayer** ppLayers


pUid [in]

  pUid is a parameter of type IUID

bRecursive [in]   bRecursive is a parameter of type VARIANT_BOOL bInBaseGlobe [in]   bInBaseGlobe is a parameter of type VARIANT_BOOL bSortedByDrawingPriority [in]   bSortedByDrawingPriority is a parameter of type VARIANT_BOOL ppLayers [out, retval]

  ppLayers is a parameter of type IEnumLayer

Product Availability

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


Returns layers of the specified type that reside in the globe document.

pUID is the interface identifier (IID) for the desired layer type. For example, the IID for IRasterLayer is
{D02371C7-35F7-11D2-B1F2-00C04F8EDEFF}. This is the value to use when you desire the collection of raster layers in the globe document.

bRecursive indictates whether the contents of group layers should be searched for candidates. Set to TRUE if the contents of group layers should be used, FALSE if not.

bInBaseGlobe is used to make a distinction between layers belonging to the base globe, elevation and draped layers, and those independent of the base globe, the floating layers. Set to TRUE for elevation or draped layers. Set to FALSE to return only floating layers.

bSortedByDrawingPriority controls the return order of draped layers. Set to TRUE if they should be returned based on drawing order, which matches the order of draped layers in the Type tab of the Table of Contents (TOC).


See Also

IGlobe Interface

.NET Snippets

Draw Globe Layers in Correct Order

.NET Related Topics