How to make the inclusion of hyperlinks to vb.net Layer Properties-> Display Tab-> hy

390
0
04-26-2012 11:24 PM
stilramber
New Contributor
How to make the inclusion of hyperlinks to vb.net Layer Properties-> Display Tab->hyperlinks
result
[ATTACH=CONFIG]13869[/ATTACH]


Sub add_hyper(i As Integer)
        Dim pDoc As IMxDocument
        pDoc = My.ArcMap.Application.Document
        Dim pMap As IMap
        pMap = pDoc.FocusMap
        Dim pFeatureLayer As ESRI.ArcGIS.Carto.IFeatureLayer
        Dim pFeatLayer As IFeatureLayer
        pFeatLayer = pMap.Layer(i)
        pFeatureLayer = pFeatLayer
        Dim pHotLinkContainer As IHotlinkContainer
        pHotLinkContainer = pFeatureLayer
        pHotLinkContainer.HotlinkType = ESRI.ArcGIS.Carto.esriHyperlinkType.esriHyperlinkTypeDocument
        pHotLinkContainer.HotlinkField = "PRAZREZ"
end sub
0 Kudos
0 Replies