RhinoCommon documentation has a new look. The old site can still be found here.
Description:
This function is called by the Object Properties and Layer Control dialogs when the "Material" button is pressed in the "Render" tab. This is only called if EnableAssignMaterialButton returns true.
Syntax:
public virtual boolOnAssignMaterial( IntPtr parent, RhinoDoc doc, ref Material material )