RenderContextBase.SetColorMaterial Method

Sets the color to the diffuse component of the front and back faces, depending on the ColorMaterialMode status.
Public MustOverride Sub SetColorMaterial( _ 
ByVal color As Color, _ 
Optional ByVal force As Boolean = false _ 
)
This language is not supported or no code example is available.
public abstract void SetColorMaterial( 
Color color
bool force = false 
)
This language is not supported or no code example is available.

Parameters

color
Color

The color to set

force
bool

If true sets the color regardless of the current one, else sets it only if it's different from the current one.

.NET Framework

Supported in: 4.8

In this article

Definition