In the Revit Platform API, material data is stored and managed as an Element. The Material element includes Elements.Material and its subclasses:
Material features are represented by properties, such as FillPattern, Color, Render and so on.
In this chapter, you learn how to access material elements and how to manage the Material objects in the document. Walkthrough: Get Materials of a Window provides a walkthrough showing how to get a window material.