ArcObjects Library Reference (Geometry)  

IZAware.ZAware Property

Indicates whether or not the geometry is aware of and capable of handling Zs.

[Visual Basic .NET]
Public Property ZAware As Boolean
[C#]
public bool ZAware {get; set;}
[C++]
HRESULT get_ZAware(
  VARIANT_BOOL* ZAware
);
[C++]
HRESULT put_ZAware(
  VARIANT_BOOL ZAware
);
[C++]

Parameters

ZAware [out, retval]   ZAware is a parameter of type VARIANT_BOOL ZAware   ZAware is a parameter of type VARIANT_BOOL

Product Availability

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

Description

Returns or sets the Z Awareness state of the geometry object.  If ZAware is TRUE, then the object will recognize that it has Z attributes and perform operations on them as necessary.  If ZAware is FALSE, the object will ignore Zs while performing operations.  ZAware should only be set to TRUE when all of the Zs are not NaN.

Remarks

Use ZAware = True when you want geometries to retain Z values during geometry operations.

[C#]

    private Double getZFromPoint(IPoint point)
    {
        return point.Z;
    }

See Also

IZAware Interface