Method TypeKeyOf
TypeKeyOf(RdlElement)
Resolves the schema type of an element in this definition.
public string? TypeKeyOf(RdlElement element)
Parameters
elementRdlElementThe element to resolve.
Returns
- string
The type key, or null when the element is not in this definition or the schema does not describe it — which is the normal answer for the designer namespace.
Remarks
Resolved by walking from the root, because an element's local name does not identify it:
Top is a size under a report item and a percentage under a chart's element
position. The walk is linear in the size of the definition and holds no cache, so a
caller resolving many elements should walk once itself rather than call this in a loop.
Exceptions
- ArgumentNullException
elementis null.