Document.IsDefaultElementTypeIdValid
Description:
Checks whether the element type id is valid for the give DefaultElmentType id.
Checks whether the element type id is valid for the give DefaultElmentType id.
public bool IsDefaultElementTypeIdValid(
ElementTypeGroup defaultTypeId,
ElementId typeId
)
-
defaultTypeIdThe default element type id.
-
typeIdThe element type id.
Return Value
Boolean
True if the element type id is valid for the give DefaultElmentType id, false otherwise.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration