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

MaterialNode.MaterialId

Property
Description:
The Id of the element assocated with this material in the model.
Remarks:
It is possible that no specific material is applied to a face, in which case the default material is used, and this property returns an InvalidElementId.
Syntax
public ElementId MaterialId { get; }