Revit 2026 API
Independent |
Checks if the IndependentTag has a tag behavior.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public bool HasTagBehavior()
Public Function HasTagBehavior As Boolean
public: bool HasTagBehavior()
member HasTagBehavior : unit -> bool
Return Value
Boolean
When the IndependentTag object does not have a tag behavior, functions related to references, leaders and orientation will throw an exception.
In this case, the element may be used for geometry augmentation. [!:Autodesk::Revit::Proxy::DB::IGeometryAugmentationServer]
The list of functions that would fail if not in tag mode:
[M:Autodesk.Revit.DB.IndependentTag.AddReferences(System.Collections.Generic.IList`1{Autodesk.Revit.DB.Reference})]GetLeaderElbow(Reference)GetLeaderEnd(Reference)HasLeaderHasLeaderElbow(Reference)IsLeaderVisible(Reference)LeaderEndConditionLeadersPresentationModeMergeElbows[M:Autodesk.Revit.DB.IndependentTag.RemoveReferences(System.Collections.Generic.IList`1{Autodesk.Revit.DB.Reference})]SetIsLeaderVisible(Reference, Boolean)SetLeaderEnd(Reference, XYZ)SetLeaderElbow(Reference, XYZ)TagOrientationTagText
See Also