GetLeader Method

Gets a copy of the leader applied to the indicated end of the datum plane. This method does not apply to Reference planes (which do not support leaders).

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


public Leader GetLeader(
	DatumEnds datumEnd,
	View view
Visual Basic
Public Function GetLeader ( _
	datumEnd As DatumEnds, _
	view As View _
) As Leader
Visual C++
Leader^ GetLeader(
	DatumEnds datumEnd, 
	View^ view


Type: Autodesk.Revit.DB DatumEnds
The end of the datum plane.
Type: Autodesk.Revit.DB View
The view on which the DatumPlane shows.

Return Value

The Leader of the datum plane. Null will return if no leader applied.


Exception Condition
Autodesk.Revit.Exceptions ArgumentException The datum plane cannot be visible in the view.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration
Autodesk.Revit.Exceptions InvalidOperationException This datum plane has no leaders.

See Also