This method sets the symbol type that is used to represent the features in the layer. The valid object types depend on the layer features type. See: “Feature Layers” chapter in the User Manual.
HRESULT DisplayAs(
[in] ObjectTypeCode ObjectType)
Parameters:
ObjectType – An enum that determines the type of object that represents the layer. The following enumerations are defined for ObjectType:
OT_POLYLINE = 1
OT_POLYGON = 2
OT_RECTANGLE = 3
OT_REGULAR_POLYGON = 4
OT_CIRCLE = 5
OT_BUILDING = 7
OT_BOX = 8
OT_PYRAMID = 9
OT_CYLINDER = 10
OT_CONE = 11
OT_ELLIPSE = 12
OT_ARC = 13
OT_ARROW = 14
OT_3D_ARROW = 15
OT_SPHERE = 16
OT_MODEL = 17
OT_LABEL = 18
OT_IMAGE_LABEL = 24
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |