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 Graphics Layer to Globe | Add Scale Bar | Add Legend | Create Graphic Buffers around Selected Features | Add North Arrow

.NET Samples

3D multipatch examples (Code Files: ElementUtilities) | Custom UI elements using add-ins (Code Files: AddGraphicsTool) | Extent view (Code Files: clsExtentView) | Brushing to create a selection (Code Files: BrushingVB) | Geoevents in a MapControl (Code Files: GeoEvents) | Move a graphic along a path in ArcMap (Code Files: frmCreateGraphicTrackOptions MapGraphicKeyframe MapGraphicTrackExtension) | Creating a toolbar of globe tools (Code Files: PointElement PolygonElement PolylineElement StyleElement TextElement) | Subset network evaluators (Code Files: SubsetHelperUI) | StreetMap routing (Code Files: RoutingForm) | Triangle graphic element (Code Files: TriangleElementClass) | Create a custom tool (Code Files: DrawGraphicLine) | Update a legend format with SymbologyControl area and line patches (Code Files: AreaLinePatches)

.NET Related Topics

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