This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IZ > IZAware Interface > IZAware.ZAware Property (ArcObjects .NET 10.5 SDK) |
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
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.
Use ZAware=True when you want geometries to retain Z values during geometry operations.
private Double getZFromPoint(IPoint point)
{
return point.Z;
}