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


IZAware.ZAware Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IZ > IZAware Interface > IZAware.ZAware Property
ArcGIS Developer Help

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(
  Boolean* ZAware
);
[C++]
HRESULT put_ZAware(
  VARIANT_BOOL ZAware
);
[C++]
Parameters
ZAware [out, retval]

ZAware is a parameter of type bool* ZAware
ZAware is a parameter of type 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

.NET Samples

Creating a toolbar of globe tools Creating a toolbar of globe tools Creating a toolbar of globe tools 3D multipatch examples