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

IndependentTag.SetIsLeaderVisible

Method
Description:
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.
Syntax
public void SetIsLeaderVisible(
	Reference referenceTagged,
	bool visible
)
Parameters
Parameter Type Description
referenceTagged Reference The reference which is tagged.
visible Boolean True for showing the leader, false to hide it.
Return Value
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.