Beruflich Dokumente
Kultur Dokumente
GeoDatabase-
DistributedUI
ArcCatalog
DataSource- Contains the ArcCatalog
Provides user interfaces to support
objects contained in the Carto library.
RasterUI application.
ArcScene
Implements the Geoprocessing GlobeCoreUI
Geoprocessing framework in addition to the base
set of Geoprocessing tools. ArcScan
Tracking-
Analyst
Survey-
Analyst
Maplex
DataSources- DataSources-
SMUUI SMEUI
Extention
Assemblies
Background: IBackground
IMapFrame and IMapSurroundFrame Border: IBorder
inherit from IF ram eElem ent . All DraftMode: Boolean IGraphicElement
Object: Variant Graphic-
properties and methods of
IFrameElement are accessible to the
Thumbnail: Long
Element
A GraphicElement is an abstract class that specifies
developer who accesses IMapFrame the one interface shown here as well as the nine
or IMapSurroundFrame. interfaces on the Element abstract class.
IChangeLayout
IContentsViewEdit
IDataGraphs
MxDocument ArcMapUI
IDocument IDocument : IDispatch
IDocumentDatasets
IDocumentDefaultSymbols Accelerators: IAcceleratorTable
IDocumentDirty CommandBars: ICommandBars
IDocumentDirty2 ID: IUID
IDocumentEvents
IDocumentEventsDisp Parent: IApplication The process is repeated for another
IDocumentInfo
IMxDocument
IPersist
Title: String
Type: esriDocumentType
VBProject: Object
3 command. In this way, several existing
ArcMap commands can be executed
IPropertySupport
IReportUnitFormat with only one click of a button.
To find the command to execute, you can use the CommandBars collection. The
1 command bars collection is a property on the IDocument interface
(ThisDocument). Using the Find method, search using the ArcID module to
provide the command's identifier. The ArcID module has members that can be ICommandBars : IUnknown
identified using the Name property of a command. The convention for naming LargeIcons: Boolean
commands is: <command category> "_" <caption>. ShowToolTips: Boolean
Action: String
BuiltIn: Boolean
Caption: String
Category: String
Command: ICommand
FaceID: Variant
Group: Boolean
HelpContextID: Long
HelpFile: String
Framework
ID: IUID
Index: Long
Message: String
Name: String
Parent: ICommandBar
Style: esriCommandStyles
Tag: String
Tooltip: String
Type: esriCommandTypes
Delete Assuming a valid command
Execute
Refresh
2 item is returned from the find,
the command is executed by
Reset
calling the Execute method.
3
A RubberLine object is used to capture a RubberLine
digitized line geometry from the user. The
TrackNew method takes the screen to draw
to and the symbol to draw with and returns
the created geometry.
ISimpleLineSymbol
SimpleLineSymbol
ISimpleLineSymbol : ILineSymbol
Style: tagesriSimpleLineStyle
Color
Display
IClone
IColor IColor : IUnknown
IPersist
IPersistStream CMYK: Long To draw a geometry on the screen, an appropriate symbol is required.
NullColor: Boolean
RGB: Long 4 This symbol instructs the screen how to draw the geometry. This step
creates a SimpleLineSymbol object and sets its properties. The Color
Transparency: Unsigned Char
UseWindowsDithering: Boolean of the Line is defined by creating an RGBColor object and setting its
GetCIELAB (out l: Double, out a: Red, Green, and Blue properties.
Double, out b: Double)
SetCIELAB (in l: Double, in a:
Double, in b: Double)
RGBColor
IRGBColor IRgbColor : IColor
Blue: Long
Green: Long
Red: Long
With pLineSymbol
.Width = 2
.Color = pRGBColor
.Style = esriSLSSolid
End With
5 With pScreen
.StartDrawing pScreen.hDC, esriNoScreenCache
.SetSymbol pLineSymbol
.DrawPolyline pPolyline
.FinishDrawing
End With
IDataset
This sample opens a shapefile on the user's IDatabaseCompact (optional) Workspace
IDatabaseConnectionInfo (optional)
IDatasetContainer
local disk and adds the contents to the map IFeatureWorkspace IFeatureWorkspace : IUnknown
IFeatureWorkspaceAnno (optional)
as a feature layer. The default symbology is IFeatureWorkspaceManage CreateFeatureClass (in Name: String, in
IFeatureWorkspaceManage2 Fields: IFields, in CLSID: IUID, in
used. This sample could easily be changed IFeatureWorkspaceSchemaEdit EXTCLSID: IUID, in FeatureType:
IGeodatabaseRelease (optional) esriFeatureType, in ShapeFieldName:
to support different data sources. ISpatialCacheManager String, in ConfigKeyword: String) :
ISpatialCacheManager2 IFeatureClass
ISQLSyntax CreateFeatureDataset (in Name:
ITransactions (optional) String, in SpatialReference:
ITransactionsOptions (optional) ISpatialReference) : IFeatureDataset
CreateQueryDef: IQueryDef
WorkspaceFactory IWorkspace
IWorkspace2 CreateRelationshipClass (in
relClassName: String, in OriginClass:
IWorkspaceFactory IWorkspaceFactory : IUnknown IWorkspaceConfiguration (optional) IObjectClass, in DestinationClass:
IWorkspaceFactory2 (optional) IWorkspaceDomains (optional) IObjectClass, in forwardLabel: String,
ILocalDatabaseCompact (optional) WorkspaceDescription (in plural: IWorkspaceDomains2 (optional) in backwardLabel: String, in
RemoteDeatabaseWorkspaceFactory (optional) Boolean) : String IWorkspaceEdit Cardinality: esriRelCardinality, in
ISetDefaultConnectionInfo (optional) WorkspaceType: esriWorkspaceType IWorkspaceEditEvents Notification: esriRelNotification, in
ISetDefaultConnectionInfo2 (optional) IsComposite: Boolean, in IsAttributed:
IWorkspaceExtentionManager (optional)
ContainsWorkspace (in IWorkspaceProperties (optional) Boolean, in relAttrFields: IFields, in
parentDirectory: String, in fileNames: IWorkspaceSpatialReferenceInfo OriginPrimaryKey: String, in
IFileNames) : Boolean destPrimaryKey: String, in
Copy (in WorkspaceName: OriginForeignKey: String, in
IWorkspaceName, in destinationFolder:
String, out workspaceNameCopy:
IWorkspaceName) : Boolean
2 The OpenFromFile method returns
a reference to a workspace.
destForeignKey: String) :
IRelationshipClass
CreateTable (in Name: String, in Fields:
Create (in parentDirectory: String, in IFields, in CLSID: IUID, in EXTCLSID:
A Workspace object contains an IUID, in ConfigKeyword: String) : ITable
Name: String, in ConnectionProperties:
IPropertySet, in hWnd: Long) :
IWorkspaceName
IFeatureWorkspace interface. This
has an OpenFeatureClass method
3 OpenFeatureClass (in Name: String) :
IFeatureClass
GetClassID: IUID OpenFeatureDataset (in Name: String)
that returns a FeatureClass. : IFeatureDataset
GetWorkspaceName (in
parentDirectory: String, in fileNames: OpenFeatureQuery (in queryName:
IFileNames) : IWorkspaceName IDataset String, in pQueryDef: IQueryDef) :
IsWorkspace (in FileName: String) : IDatasetAnalyze IFeatureDataset
(optional)
Boolean IDatasetEdit Dataset OpenRelationshipClass (in Name:
Move (in WorkspaceName: IDatasetEditInfo String) : IRelationshipClass
IWorkspaceName, in ISchemaLock OpenRelationshipQuery (in pRelClass:
destinationFolder: String) : Boolean (optional) IRelationshipClass, in joinForward:
Open (in ConnectionProperties: Boolean, in pSrcQueryFilter:
IPropertySet, in hWnd: Long) : IQueryFilter, in pSrcSelectionSet:
IWorkspace ISelectionSet, in TargetColumns:
IClass String, in DoNotPushJoinToDB:
OpenFromFile (in FileName: String, in
hWnd: Long) : IWorkspace
ITable
ITableCapabilities
Table Boolean) : ITable
ReadConnectionPropertiesFromFile (in OpenTable (in Name: String) : ITable
FileName: String) : IPropertySet
IClassSchemaEdit (optional)
IClassSchemaEdit2 (optional) ObjectClass
IModelInfo (optional)
IObjectClass IObjectClass : IClass
Shapefile- IObjectClassEvents
IObjectClassInfo (optional)
Workspace- AliasName: String
IObjectClassInfo2 (optional)
ObjectClassID: Long
Factory IObjectClassSchemaEvents
ISubtypes (optional) RelationshipClasses (in
IValidation (optional) role: esriRelRole) :
1 IValidation2 (optional) IEnumRelationshipClass
The ShapefileWorkspaceFactory
coclass creates a shapefile
workspace factory object.
Geodatabase FeatureClass
IFeatureClass IFeatureClass : IObjectClass
IFeatureClassLoad (optional) AreaField: IField
IFeatureClassWrite FeatureClassID: Long
IGeoDataset FeatureDataset: IFeatureDataset
INetworkClass FeatureType: esriFeatureType
LengthField: IField
ShapeFieldName: String
ShapeType: tagesriGeometryType
CreateFeature: IFeature
CreateFeatureBuffer: IFeatureBuffer
FeatureCount (in QueryFilter:
IQueryFilter) : Long
GetFeature (in ID: Long) : IFeature
GetFeatures (in fids: Variant, in
Recycling: Boolean) : IFeatureCursor
Insert (in useBuffering: Boolean) :
IFeatureCursor
Search (in Filter: IQueryFilter, in
Recycling: Boolean) : IFeatureCursor
Select (in QueryFilter: IQueryFilter, in
selType: esriSelectionType, in
selOption: esriSelectionOption, in
selectionContainer: IWorkspace) :
ISelectionSet
Update (in Filter: IQueryFilter, in
Recycling: Boolean) : IFeatureCursor
7 pMxDoc.AddLayer pLayer
8 pMxDoc.ActiveView.PartialRefresh esriViewGeography, pLayer, _
Nothing
IMap : IUnknown
ArcMapUI IMapSurround
MapSurroundCount: Long
MapUnits: esriUnits
Name: String
IChangeLayout ReferenceScale: Double
IContentsViewEdit
IDataGraphs
MxDocument SelectionCount: Long
SpatialReference: ISpatialReference
IDocument SpatialReferenceLocked: Boolean
IDocumentDatasets UseSymbolLevels: Boolean
IDocumentDefaultSymbols
IDocumentDirty AddLayer (in Layer: ILayer)
IDocumentDirty2 AddLayers (in Layers: IEnumLayer, in
IDocumentEvents autoArrange: Boolean)
IDocumentEventsDisp AddMapSurround (in MapSurround:
IDocumentInfo IMapSurround)
IMxDocument : IUnknown ClearLayers
IMxDocument
IPersist ClearMapSurrounds
ActivatedView: IActiveView
IPropertySupport ClearSelection
ActiveView: IActiveView
IReportUnitFormat ComputeDistance (in p1: IPoint, in p2:
ActiveViewCommand: ICommand IPoint) : Double
ContentsView (in Index: Long) : The GxDialog coclass provides the user CreateMapSurround (in CLSID: IUID, in
IContentsView
ContentsViewCount: Long
ContextItem: IUnknown Pointer
CurrentContentsView: IContentsView
2 interface used by all ArcGIS applications
when selecting data sources.
optionalStyle: IMapSurround) :
IMapSurround
DelayDrawing (in delay: Boolean)
DelayEvents (in delay: Boolean)
CurrentLocation: IPoint DeleteLayer (in Layer: ILayer)
DefaultColor (in Type: DeleteMapSurround (in MapSurround:
tagesriMxDefaultColorTypes) : IColor IMapSurround)
DefaultTextFont: Font GetPageSize (out widthInches: Double,
DefaultTextFontSize: IFontSize out heightInches: Double)
DelayUpdateContents: Boolean MoveLayer (in Layer: ILayer, in toIndex:
FocusMap: IMap Long)
Maps: IMaps GxDialog RecalcFullExtent
SelectByShape (in Shape: IGeometry,
OperationStack: IOperationStack
PageLayout: IPageLayout in env: ISelectionEnvironment, in
IGxDialog IGxDialog : IUnknown justOne: Boolean)
RelativePaths: Boolean IGxObjectFilterCollection SelectFeature (in Layer: ILayer, in
SearchTolerance: Double IGxSelectionEvents Feature: IFeature)
SearchTolerancePixels: Long
AllowMultiSelect: Boolean
SetPageSize (in widthInches: Double, in
SelectedItem: IUnknown Pointer ButtonCaption: String heightInches: Double)
SelectedLayer: ILayer FinalLocation: IGxObject
StyleGallery: IStyleGallery InternalCatalog: IGxCatalog
TableProperties: ITableProperties Name: String
AddLayer (in Layer: ILayer) ObjectFilter: IGxObjectFilter
CanInsertObject (pEnabled: Boolean) RememberLocation: Boolean
InsertObject
UpdateContents ReplacingObject: Boolean
StartingLocation: Variant 4
Title: String
The DoModalOpen method on
DoModalOpen (in
parentWindow: Long, out the IGxDialog interface is called
To limit the data sources available for selection Selection: IEnumGxObject)
IActiveView : IUnknown
3 within the dialog box, a GxObjectFilter is
used. For this example, the filter only allows
: Boolean
DoModalSave (in
to display the GxDialog. Once the
user has finished, the selected
parentWindow: Long) : feature classes can be accessed via
ExportFrame: tagRECT feature classes to be selected. Using filters Boolean
Extent: IEnvelope the GxObject enumerator that is
ExtentStack: IExtentStack simplifies the code after the selection is made.
FocusMap: IMap
passed out of the method call.
FullExtent: IEnvelope
GraphicsContainer: IGraphicsContainer
IsMapActivated: Boolean
ScreenCacheID (in phase:
CatalogUI
tagesriViewDrawPhase, in data:
IUnknown Pointer) : Integer GxFilterFeatureClasses
ScreenDisplay: IScreenDisplay
Selection: ISelection IGxObjectFilter IGxObjectFilter : IUnknown
ShowRulers: Boolean
ShowScrollBars: Boolean Description: String
ShowSelection: Boolean
TipText (in X: Double, in Y: Double) :
Name: String
String
Activate (hWnd: Long) CanChooseObject (in Object:
Clear IGxObject, result:
ContentsChanged tagesriDoubleClickResult) : Boolean
Deactivate CanDisplayObject (in Object:
Draw (in hDC: Long, in trackCancel: IGxObject) : Boolean
ITrackCancel)
GetContextMenu (in X: Double, in Y: CanSaveObject (in Location:
Double, out clsidMenu: IUID) IGxObject, in newObjectName:
HitTestMap (in Location: IPoint) : IMap String, objectAlreadyExists:
IsActive: Boolean Boolean) : Boolean
OnMessage (in msg: Unsigned Long, in
wParam: Unsigned Machine Int, in
lParam: Long)
Output (in hDC: Long, in dpi: Long, in 8 5
PixelBounds: tagRECT, in
VisibleBounds: IEnvelope, in If the enumerator is nothing, no selections
trackCancel: ITrackCancel) Finally, the newly added layer is drawn on the IEnumGxObject : IUnknown
PartialRefresh (in phase: were made and the sub is exited.
tagesriViewDrawPhase, in data: screen. Notice the use of the PartialRefresh
IUnknown Pointer, in Envelope: Otherwise, the enumerator is reset in
IEnvelope) method instead of the Refresh method; this Next: IGxObject
preparation for its iteration.
PrinterChanged (in Printer: IPrinter) ensures optimal drawing of all the map layers. Reset
Refresh
7 IPersist
IPersistStream
AreaOfInterest: IEnvelope
Cached: Boolean
IPublishLayer
IFeatureClass : IObjectClass
This sample goes through all polygon layers in the An enumerator is obtained from the style gallery for the style
map and attempts to match the symbology from 2 gallery's FillSymbol entries that, when accessed, will loop over
all the FillSymbols.
the standard style set to the layer name. ArcMap
does this by default. Therefore, to see a real
difference before testing the tool, layer names IStyleGallery : IUnknown
should be changed to reflect suitable styles. For Categories (in ClassName: String) :
IEnumBSTR
example, try changing a layer name to "Glacier" and Class (in Index: Long) :
IStyleGalleryClass
executing this command. ClassCount: Long
Items (in ClassName: String, in
styleSet: String, in Category: String) :
IEnumStyleGalleryItem
AddItem (in Item: IStyleGalleryItem)
Clear
ImportStyle (in FileName: String)
LoadStyle (in FileName: String, in
To begin, you must gain access to ClassName: String)
1 the current document. RemoveItem (in Item:
IStyleGalleryItem)
SaveStyle (in FileName: String, in
styleSet: String, in ClassName: String)
UpdateItem (in Item: IStyleGalleryItem)
IChangeLayout
IContentsViewEdit MxDocument
IDataGraphs
IDocument
IDocumentDatasets
IDocumentDefaultSymbols
IDocumentDirty
IDocumentDirty2
ArcMapUI
IDocumentEvents
IDocumentEventsDisp
IDocumentInfo IMap : IUnknown
IMxDocument : IUnknown
IMxDocument ActiveGraphicsLayer: ILayer
IPersist ActivatedView: IActiveView
IPropertySupport AnnotationEngine: IAnnotateMap
ActiveView: IActiveView AreaOfInterest: IEnvelope
IReportUnitFormat ActiveViewCommand: ICommand Barriers (pExtent: IEnvelope) :
ContentsView (in Index: Long) : IBarrierCollection
IContentsView BasicGraphicsLayer: IGraphicsLayer
ContentsViewCount: Long ClipBorder: IBorder
ContextItem: IUnknown Pointer ClipGeometry: IGeometry
CurrentContentsView: IContentsView Description: String
CurrentLocation: IPoint DistanceUnits: esriUnits
DefaultColor (in Type: Expanded: Boolean
tagesriMxDefaultColorTypes) : IColor FeatureSelection: ISelection
DefaultTextFont: Font IsFramed: Boolean
DefaultTextFontSize: IFontSize
Layer (in Index: Long) : ILayer
DelayUpdateContents: Boolean
LayerCount: Long
FocusMap: IMap
Maps: IMaps
OperationStack: IOperationStack
PageLayout: IPageLayout
3 Layers (UID: IUID, recursive: Boolean)
: IEnumLayer
MapScale: Double
MapSurround (in Index: Long) :
RelativePaths: Boolean
SearchTolerance: Double Using the IMap layer properties, IMapSurround
MapSurroundCount: Long
SearchTolerancePixels: Long loop over all the layers in the MapUnits: esriUnits
SelectedItem: IUnknown Pointer Name: String
SelectedLayer: ILayer map. ReferenceScale: Double
IActiveView : IUnknown StyleGallery: IStyleGallery SelectionCount: Long
TableProperties: ITableProperties SpatialReference: ISpatialReference
ExportFrame: tagRECT
Extent: IEnvelope AddLayer (in Layer: ILayer) SpatialReferenceLocked: Boolean
ExtentStack: IExtentStack CanInsertObject (pEnabled: Boolean) UseSymbolLevels: Boolean
FocusMap: IMap InsertObject AddLayer (in Layer: ILayer)
FullExtent: IEnvelope UpdateContents AddLayers (in Layers: IEnumLayer, in
GraphicsContainer: IGraphicsContainer autoArrange: Boolean)
IsMapActivated: Boolean AddMapSurround (in MapSurround:
ScreenCacheID (in phase: IMapSurround)
tagesriViewDrawPhase, in data: ClearLayers
IUnknown Pointer) : Integer ClearMapSurrounds
ScreenDisplay: IScreenDisplay ClearSelection
Selection: ISelection ComputeDistance (in p1: IPoint, in p2:
ShowRulers: Boolean IPoint) : Double
ShowScrollBars: Boolean CreateMapSurround (in CLSID: IUID, in
ShowSelection: Boolean optionalStyle: IMapSurround) :
IMapSurround
TipText (in X: Double, in Y: Double) :
String DelayDrawing (in delay: Boolean)
DelayEvents (in delay: Boolean)
Activate (hWnd: Long)
DeleteLayer (in Layer: ILayer)
Clear
DeleteMapSurround (in MapSurround:
ContentsChanged IMapSurround)
Deactivate GetPageSize (out widthInches: Double,
Draw (in hDC: Long, in trackCancel: out heightInches: Double)
ITrackCancel) MoveLayer (in Layer: ILayer, in toIndex:
GetContextMenu (in X: Double, in Y: Long)
Double, out clsidMenu: IUID) RecalcFullExtent
HitTestMap (in Location: IPoint) : IMap SelectByShape (in Shape: IGeometry,
IsActive: Boolean in env: ISelectionEnvironment, in
OnMessage (in msg: Unsigned Long, in justOne: Boolean)
wParam: Unsigned Machine Int, in Finally, all the geographic layers are SelectFeature (in Layer: ILayer, in
lParam: Long)
Output (in hDC: Long, in dpi: Long, in
PixelBounds: tagRECT, in
8 refreshed to update the map display.
Feature: IFeature)
SetPageSize (in widthInches: Double, in
heightInches: Double)
VisibleBounds: IEnvelope, in
trackCancel: ITrackCancel)
PartialRefresh (in phase:
tagesriViewDrawPhase, in data:
IUnknown Pointer, in Envelope:
IEnvelope)
PrinterChanged (in Printer: IPrinter)
Refresh
Category: String
Geodatabase
ID: Long IFeatureClass : IObjectClass
Item: IUnknown Pointer
Name: String AreaField: IField
FeatureClassID: Long
FeatureDataset: IFeatureDataset
FeatureType: esriFeatureType
LengthField: IField
ShapeFieldName: String
ShapeType: tagesriGeometryType
IEnumStyleGalleryItem:IUnknown CreateFeature: IFeature
CreateFeatureBuffer: IFeatureBuffer
Next: IStyleGalleryItem FeatureCount (in QueryFilter:
Reset IQueryFilter) : Long
GetFeature (in ID: Long) : IFeature
GetFeatures (in fids: Variant, in
Recycling: Boolean) : IFeatureCursor
6 Insert (in useBuffering: Boolean) :
IFeatureCursor
Search (in Filter: IQueryFilter, in
Recycling: Boolean) : IFeatureCursor
The style gallery enumerator is reset and
then iterated over to look for a match 5 Select (in QueryFilter: IQueryFilter, in
selType: esriSelectionType, in
selOption: esriSelectionOption, in
between the style item name and the layer selectionContainer: IWorkspace) :
Using the FeatureClass property,
name. ISelectionSet
check the shape type of the layer. Update (in Filter: IQueryFilter, in
Carto If it is not Polygon, skip to the next
layer.
Recycling: Boolean) : IFeatureCursor
ILayer : IUnknown
AreaOfInterest: IEnvelope
Cached: Boolean
Carto
MaximumScale: Double
If a match in name is found, the
MinimumScale: Double
Name: String
ShowTips: Boolean
ISimpleRenderer:IUnknown
Description: String
7 symbol obtained from the style
gallery is set into the renderer.
SpatialReference: ISpatialReference Label: String
SupportedDrawPhases: Long Symbol: ISymbol
TipText (in X: Double, in Y: Double,
in Tolerance: Double) : String
Valid: Boolean
Visible: Boolean
Draw (in drawPhase:
tagesriDrawPhase, in Display:
IDisplay, in trackCancel: Add this to the Click event of a UIButtonControl in ArcMap.
ITrackCancel)
1 Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument
IFeatureLayer : ILayer
2 Dim pStyleItems As IEnumStyleGalleryItem
DataSourceType: String Set pStyleItems = pMxDoc.StyleGallery.Items("Fill Symbols", _
DisplayField: String
FeatureClass: IFeatureClass
"ESRI.style", "Default")
ScaleSymbols: Boolean Dim pGalleryItem As IStyleGalleryItem
Selectable: Boolean
Dim pRenderer As ISimpleRenderer
Search (in QueryFilter:
IQueryFilter, in Recycling: Dim pGeoFeatureLayer As IGeoFeatureLayer
Boolean) : IFeatureCursor Dim i As Long
3 For i = 0 To pMxDoc.FocusMap.LayerCount - 1
If (TypeOf pMxDoc.FocusMap.Layer(i) Is IGeoFeatureLayer) Then
IGeoFeatureLayer : IFeatureLayer 4 Set pGeoFeatureLayer = pMxDoc.FocusMap.Layer(i)
5 If (pGeoFeatureLayer.FeatureClass.ShapeType = _
AnnotationProperties:
IAnnotateLayerPropertiesCollection esriGeometryPolygon) Then
AnnotationPropertiesID: IUID pStyleItems.Reset
CurrentMapLevel: Long Set pGalleryItem = pStyleItems.Next
DisplayAnnotation: Boolean 6
DisplayFeatureClass: IFeatureClass Do While (Not pGalleryItem Is Nothing)
ExclusionSet: IFeatureIDSet If (pGeoFeatureLayer.Name = pGalleryItem.Name) Then
Renderer: IFeatureRenderer Set pRenderer = pGeoFeatureLayer.Renderer
RendererPropertyPageClassID: IUID 7 Set pRenderer.Symbol = pGalleryItem.Item
SearchDisplayFeatures (in QueryFilter: Exit Do
IQueryFilter, in Recycling: Boolean) : End If
IFeatureCursor
Set pGalleryItem = pStyleItems.Next
Loop
If the type of layer is not an End If
4 IGeoFeatureLayer, continue to
the next layer.
End If
Next i
8 pMxDoc.ActivatedView.PartialRefresh esriViewGeography, _
Nothing, Nothing
To obtain the layers of the map, you must first get IFeatureClass : IObjectClass
1 access to the currently active map. Do this through the
FocusMap property of the IMxDocument interface.
AreaField: IField
FeatureClassID: Long
FeatureDataset: IFeatureDataset
FeatureType: esriFeatureType
Area: Double
Centroid: IPoint
LabelPoint: IPoint
Finally, the totalled area is displayed
Geometry QueryCentroid (Center: IPoint)
QueryLabelPoint (LabelPoint: IPoint)
10 to the user in a standard Visual Basic
Message Box.
10 MsgBox "Total Area for selected polygon features = " & CStr(dTotalArea)
1 ContentsViewCount: Long
ContextItem: IUnknown Pointer
CurrentContentsView: IContentsView
ReferenceScale: Double
SelectionCount: Long
SpatialReference: ISpatialReference
ShapeFieldName: String
ShapeType: tagesriGeometryType
Depth: Double
FullExtent: IEnvelope Height: Double
GraphicsContainer: IGraphicsContainer LowerLeft: IPoint
IsMapActivated: Boolean
ScreenCacheID (in phase:
IRubberBand RubberBand LowerRight: IPoint
MMax: Double
tagesriViewDrawPhase, in data: MMin: Double
IUnknown Pointer) : Integer IRubberBand : IUnknown UpperLeft: IPoint
ScreenDisplay: IScreenDisplay UpperRight: IPoint
Selection: ISelection Width: Double
ShowRulers: Boolean TrackExisting (in ScreenDisplay: XMax: Double
ShowScrollBars: Boolean IScreenDisplay, in Symbol: ISymbol, XMin: Double
ShowSelection: Boolean in Geometry: IGeometry) : Boolean YMax: Double
TipText (in X: Double, in Y: Double) : YMin: Double
String TrackNew (in ScreenDisplay: ZMax: Double
IScreenDisplay, in Symbol: ISymbol) ZMin: Double
Activate (hWnd: Long) : IGeometry
Clear CenterAt (p: IPoint)
ContentsChanged DefineFromPoints (Count: Long, in
Deactivate Points: IPoint)
Draw (in hDC: Long, in trackCancel: Expand (dx: Double, dy: Double,
ITrackCancel) asRatio: Boolean)
GetContextMenu (in X: Double, in Y:
Double, out clsidMenu: IUID)
HitTestMap (in Location: IPoint) : IMap
2 Rubber-
ExpandM (dm: Double, asRatio:Boolean)
ExpandZ (dz: Double, asRatio: Boolean)
Intersect (inEnvelope: IEnvelope)
IsActive: Boolean Offset (X: Double, Y: Double)
OnMessage (in msg: Unsigned Long, in A user-defined envelope defining the Envelope OffsetM (M: Double)
OffsetZ (Z: Double)
wParam: Unsigned Machine Int, in
lParam: Long) extent of the spatial query is required. PutCoords (XMin: Double, YMin: Double,
Output (in hDC: Long, in dpi: Long, in XMax: Double, YMax: Double)
PixelBounds: tagRECT, in
The rubber envelope object is used. QueryCoords (out XMin: Double, out
VisibleBounds: IEnvelope, in YMin: Double, out XMax: Double, out
trackCancel: ITrackCancel) YMax: Double)
PartialRefresh (in phase:
tagesriViewDrawPhase, in data:
IUnknown Pointer, in Envelope:
IEnvelope)
Display Union (inEnvelope: IEnvelope)
10 MsgBox "Features Found:" & vbCrLf & lPoints & " Points " & vbCrLf & _
lPolylines & " Polylines " & vbCrLf & lPolygons & " Polygons "