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


ISymbologyControlDefault.Object Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISymbologyControlDefault Interface > ISymbologyControlDefault.Object Property
ArcGIS Developer Help

ISymbologyControlDefault.Object Property

A property that returns the underlying control. This can be used when the control is inside a wrapper object that has been added by a development environment.

[Visual Basic .NET]
Public ReadOnly Property Object As Object
[C#]
public object Object {get;}
[C++]
HRESULT get_Object(
void
);

Product Availability

Available with ArcGIS Engine.

Description

In some development environments it is not possible to query interface directly on the control to other COM interfaces, beacuse the control is contained within a wrapper object. To get the real control use the Object property.

[C#]

When querying interface to ISymbologyControlDefault in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.

ISymbologyControlDefault symbologyControl = axSymbologyControl1.Object as ISymbologyControlDefault;

[Visual Basic .NET]

When querying interface to ISymbologyControlDefault in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.

Dim symbologyControl As ISymbologyControlDefault = AxSymbologyControl1.Object

See Also

ISymbologyControlDefault Interface