ArcObjects Library Reference  (Carto)    

IScaleDependentRenderer Example

[Visual Basic 6.0]

    Set pScaleRend = New ScaleDependentRenderer
   
    pScaleRend.AddRenderer pAlphaRend
    pScaleRend.AddRenderer pBetaRend
    pScaleRend.AddRenderer pGammaRend

    pScaleRend.Break(0) = 1000
    pScaleRend.Break(1) = 10000
    pScaleRend.Break(2) = 250000
                
    Set pGeoFeatLayer.Renderer = pScaleRend

    ' ** what this means **

    ' if scale denom. <= 1,000 then alpha renderer is used

    ' if 1,000 < scale denom. <= 10,000 then beta renderer is used

    ' if 10,000 < scale denom. <= 250,000 then gamma renderer is used

    ' if 250,000 < scale demon. then NO renderer assigned


[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button Language Filter in the upper-left corner of the page.