ArcObjects Library Reference (Carto)  

IElement.Geometry Property

Shape of the element as a geometry.

[Visual Basic .NET]
Public Property Geometry As IGeometry
[C#]
public IGeometry Geometry {get; set;}
[C++]
HRESULT get_Geometry(
  IGeometry** pGeometry
);
[C++]
HRESULT put_Geometry(
  IGeometry* pGeometry
);
[C++]

Parameters

pGeometry [out, retval]

  pGeometry is a parameter of type IGeometry

pGeometry [in]

  pGeometry is a parameter of type IGeometry

Product Availability

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

Description

Geometry is the shape assigned to this element.

Remarks

The Geometry property will return the shape associated with the element as an IGeometry.  The geometry type of objects implementing IElement varies widely depending on what the element does.  The remarks of each object implementing IElement will list the geometry types that are valid for that specific element.

See Also

IElement Interface

.NET Snippets

Add North Arrow | Add Scale Bar | Add Legend | Add Graphics Layer to Globe | Create Graphic Buffers around Selected Features |

.NET Samples

3D multipatch examples (Code Files: ElementUtilities) | Arranging MOLE graphics using manual decluttering (Code Files: MainForm) | Brushing to create a selection (Code Files: BrushingVB) | Create a custom tool (Code Files: DrawGraphicLine) | Creating a toolbar of globe tools (Code Files: PointElement PolygonElement PolylineElement StyleElement TextElement) | Custom UI elements using add-ins (Code Files: AddGraphicsTool) | Decluttering MOLE graphics using leadering and stacking (Code Files: MainForm) | Geodesy MapControl (Code Files: GeodesyMapControl) | Geoevents in a MapControl (Code Files: GeoEvents) | Move a graphic along a path in ArcMap (Code Files: frmCreateGraphicTrackOptions MapGraphicKeyframe MapGraphicTrackExtension) | StreetMap routing (Code Files: RoutingForm) | Subset network evaluators (Code Files: SubsetHelperUI) | Triangle graphic element (Code Files: TriangleElementClass) | Update a legend format with SymbologyControl area and line patches (Code Files: AreaLinePatches) | Using MOLE symbol-based graphics with interactive maps (Code Files: MainForm) |

.NET Related Topics

Adjusting feature locations with spatial adjustment | Building a map viewing application using the ArcGIS Engine controls | Create a custom tool | DefenseSolutions | How to develop the SOE | Implementing persistence | Selection trackers | Working with map surrounds | Working with PageLayout elements |