RVTDocs.com
Namespace: Autodesk.Revit.DB Class: XYZ

XYZ.Item

Property
Description:
Indexed access to coordinates.
Syntax
public double this[
	int idx
] { get; }
Parameters
Parameter Type Description
idx Int32 Use 0 for X, 1 for Y and 2 for Z.
Return Value
Exceptions
Exception Condition
ArgumentOutOfRangeException Thrown when an attempt is made to access the coordinate with an index that is larger than 2.