Opens the Brush editor dialog, allowing the user to choose a color, gradient, or texture.

Namespace: Ico.Gwx
Assembly: GwxConfigCore (in GwxConfigCore.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public Brush OpenBrushEditor(
	Brush brush
)
Visual Basic
Public Function OpenBrushEditor ( _
	brush As Brush _
) As Brush
JScript
public function OpenBrushEditor(
	brush : Brush
) : Brush

Parameters

brush
Type: System.Windows.Media..::..Brush
An initial Brush to send to the Brush editor dialog.

Return Value

The new Brush selected by the user. If the user did not select a new Brush (such as when the Cancel button is clicked), this function returns the original brush. So, you can compare the brush parameter to the return value of this function to determine if the user chose a new brush.

See Also