Source: ApexComponent
The ApexComponent, as you would expect, is the record for the Visual Force Component.
Note that, even if the describe states that the ApexComponent is creatable and updatable, an exception is thrown if you try to insert/update via API a class: use the tooling API or metadata API instead.
Among the fields, you can query for the markup of the component, its Apex controller.
Here an example:
Select Id, Name, ApiVersion, Markup, ControllerKey, ControllerType, From ApexComponent ORDER BY Name
Leave a Reply