Class XBRLLink
Represents a link element in an XBRL linkbase (presentation, definition, calculation, label, reference, footnote, or generic links).
public class XBRLLink : XbrlItem
- Inheritance
-
XBRLLink
- Inherited Members
Constructors
XBRLLink(DiscoverableTaxonomySet, XElement)
Initializes a new instance of the XBRLLink class.
public XBRLLink(DiscoverableTaxonomySet dts, XElement xml)
Parameters
dtsDiscoverableTaxonomySetThe discoverable taxonomy set this link belongs to.
xmlXElementThe XML element representing this link.
Properties
Arcs
Gets the arcs contained in this link.
public required Arc[] Arcs { get; init; }
Property Value
- Arc[]
Kind
Gets the kind of link.
public required XBRLLink.LinkKind Kind { get; init; }
Property Value
Labels
Gets the labels contained in this link (label resources).
public required Label[] Labels { get; init; }
Property Value
- Label[]
Locators
Gets the locators contained in this link.
public required Locator[] Locators { get; init; }
Property Value
- Locator[]
References
Gets the reference resources contained in this link.
public required Reference[] References { get; init; }
Property Value
RoleType
Gets the role type associated with this link.
public required RoleType RoleType { get; init; }
Property Value
Methods
GetLocatorsByLabel(string)
Retrieves all locators associated with the specified label.
public IEnumerable<Locator> GetLocatorsByLabel(string label)
Parameters
labelstringThe label used to identify and retrieve the associated locators. Cannot be null.
Returns
- IEnumerable<Locator>
An enumerable collection of locators that are associated with the specified label. Returns an empty collection if no locators are found for the label.
TagNameOf(LinkKind)
Gets the tag name (XName) for the specified link kind.
public static XName TagNameOf(XBRLLink.LinkKind kind)
Parameters
Returns
- XName
The corresponding XName for the link tag.