Set tag's leader that points to specified reference to be visible or not. This option can be set only if the LeadersPresentationMode is ShowSpecificLeaders.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void SetIsLeaderVisible(
Reference referenceTagged,
bool visible
)
Parameters
- referenceTagged Reference
-
The reference which is tagged.
- visible Boolean
-
True for showing the leader, false to hide it.
Exceptions
| Exception | Condition |
|---|
| ArgumentException |
The specified reference is not currently tagged.
|
| ArgumentNullException |
A non-optional argument was null
|
| InvalidOperationException |
The IndependentTag object does not have a tag behavior.
-or-
For this tag leaders are not allowed.
-or-
The LeadersPresentationMode should be set to ShowSpecificLeaders.
|
See Also
Reference