This document is archived and information here might be outdated.  Recommended version.


IRepresentation.Graphics Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRepresentation Interface > IRepresentation.Graphics Property
ArcGIS Developer Help

IRepresentation.Graphics Property

The Graphics object that describes the free representation.

[Visual Basic .NET]
Public Property Graphics As IRepresentationGraphics
[C#]
public IRepresentationGraphics Graphics {get; set;}
[C++]
HRESULT get_Graphics(
  IRepresentationGraphics** Graphics
);
[C++]
HRESULT put_Graphics(
  IRepresentationGraphics* Graphics
);
[C++]
Parameters
Graphics [out, retval]

Graphics is a parameter of type IRepresentationGraphics** Graphics [in]
Graphics is a parameter of type IRepresentationGraphics*

Product Availability

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

Remarks

Use Graphics property to get or set a reference to the graphic object when representation is based on free representation. A free representation (Graphics) has a RepresentationRuleID value equal to -1. For all other representations, the RuleID value is a valid value and always greater than or equal to 1.

Graphics property will return an empty object when the representation is not based on free representation.

How to convert a feature representation into a free representation which uses Graphics for drawing:

  1. Create a new RepresentationGraphics object. Use esriDisplay.IRepresentationGraphics interface for this.
  2. Set this representation graphics object to the feature representation using Graphics property. This process will assign a value of -1 to the RuleID property which is significant to a free representation.
  3. Update the feature representation using UpdateFeature.
  4. Store the changes using IFeature::Store method.

 

 

See Also

IRepresentation Interface