Leader
A leader object that can be attached to annotation elements such as text notes.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.Leader
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Leader : APIObject
The Leader type exposes the following members.
Properties
Name
Description
Public Property
Anchor
Anchor point of the Leader
Public Property
Elbow
Elbow point of the Leader.
Public Property
End
End point of the Leader.
Public Property
Code Example
IsReadOnly
Identifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
LeaderShape
Geometric style of the leader
Methods
Name
Description
Public Method
Dispose
Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
For information on how to attach or get leaders to/from a text annotation refer to corresponding methods of TextNote class.