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


IZAware.ZAware Property (ArcObjects .NET 10.5 SDK)
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

.NET Snippets

Set Z Value on Point | Zoom to Selected Globe Features

.NET Samples

3D multipatch examples (Code Files: GeometryUtilities) | Creating a toolbar of globe tools (Code Files: PointGeometry PolygonGeometry PolylineGeometry)

.NET Related Topics

How to work with IExtrude | How to zoom to selected features in globe