GridType Property


Get and Set the type of the grid object.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)

Syntax

C#
[ObsoleteAttribute("This property is deprecated in Revit 2016. Use GetTypeId() and ChangeTypeId() instead.")]
public GridType GridType { get; set; }
Visual Basic
<ObsoleteAttribute("This property is deprecated in Revit 2016. Use GetTypeId() and ChangeTypeId() instead.")> _
Public Property GridType As GridType
	Get
	Set
Visual C++
[ObsoleteAttribute(L"This property is deprecated in Revit 2016. Use GetTypeId() and ChangeTypeId() instead.")]
public:
property GridType^ GridType {
	GridType^ get ();
	void set (GridType^ value);
}

Remarks

When a null reference ( Nothing in Visual Basic) is input for the method set, ArgumentNullException will be thrown.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →