Interface IPropertySupport

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to members that set a default property on an object.

[Guid("8A11AD55-2F4F-11D3-9FA0-00C04F6BC6A5")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IPropertySupport

Remarks

For FeatureLayer objects, the ArcGIS
framework uses this interface to check to see if the specified
display filter object can be applied to the layer.
Applies indicates whether the specified display
filter object can be applied generally, while
CanApply indicates whether the specified display
filter object can be applied at that particular moment.
Current returns the current display filter.
FeatureLayer objects also uses
IPropertySupport to manage some renderer objects.

Properties

Current[object]

The object currently being used.

object Current[object pUnk] { get; }

Parameters

pUnk object

Property Value

object

Remarks

Current will return you the current object of the specified type.  For instance, I may ask a CircleElement if it supports a Color object.  If it does, then I can use Current to get the Color object currently applied to my CircleElement.

Methods

Applies(object)

Indicates if the receiver can apply the given object at any given time.

bool Applies(object pUnk)

Parameters

pUnk object

Returns

bool

Remarks

Applies indicates whether the specified object can be applied to the current object.  For instance, we might want to ask our CircleElement whether a Color object applies to it.  If it does, then we can use the Apply method to update our CircleElement with the new Color object.

CanApply differs from Applies in that it is a check for the editability of the object at any given time.  Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.

Apply(object)

Applies the given property to the receiver and returns the old object.

object Apply(object newObject)

Parameters

newObject object

Returns

object

Remarks

Apply will apply the specified object to the current object.  For instance, I might apply a Color object to my RectangleElement.  When I execute Apply, the object I replace (the old object) is returned.

Use the Applies and CanApply methods to determine if an Apply can be used on an object.

CanApply(object)

Indicates if the receiver can apply the given object at that particular moment.

bool CanApply(object pUnk)

Parameters

pUnk object

Returns

bool

Remarks

CanApply indicates whether the specified object can be applied to the current object.  For instance, we might want to ask our CircleElement whether a Color object applies to it.  If it does, then we can use the Apply method to update our CircleElement with the new Color object.

CanApply differs from Applies in that it is a check for the editability of the object at any given time.  Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.