RenderPlugIn.OnEditMaterial Method

RenderPlugInOnEditMaterial Method

This function is called by the Object Properties and Layer Control dialogs when the "Edit" button is pressed in the "Material" tab. This is only called if EnableEditMaterialButton returns true. A return value of true means the material has been updated.

Namespace:  Rhino.PlugIns
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public virtual bool OnEditMaterial(
	IntPtr parent,
	RhinoDoc doc,
	ref Material material
)
Public Overridable Function OnEditMaterial ( 
	parent As IntPtr,
	doc As RhinoDoc,
	ByRef material As Material
) As Boolean

Parameters

parent
Type: SystemIntPtr

[Missing <param name="parent"/> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnEditMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

doc
Type: RhinoRhinoDoc

[Missing <param name="doc"/> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnEditMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

material
Type: Rhino.DocObjectsMaterial

[Missing <param name="material"/> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnEditMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnEditMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

Version Information

Rhino for Windows

Supported in: 6.8
See Also