SilverScreen Solid Modeler

ToSolidBrush method

ToSolidBrush method

Previous topic Next topic  

ToSolidBrush method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

System.Windows.Media.SolidColorBrush ToSolidBrush()

 

 

 

 

 




Synopsis

using SilverSharp;

 

The ToSolidBrush method converts a SilverSharp.SS_RGB object to a System.Windows.Media.SolidColorBrush object.

 

 

Parameters

none

 

 

Return Value

ToSolidBrush returns a System.Windows.Media.SolidColorBrush that represents the same color as the SilverSharp.SS_RGB object

 

 

Remarks

This method is most useful when working with WPF applications.

 

 

See Also

SS_RGB

 

 

Example

The following code sets the Background property of a WPF window:

 

C# Code for WPF

 

 using SilverSharp;

 using System.Windows.Media;

 

 . . .

 

 SS_RGB background = SILVER_COLORS.gray;

 

 MessageBox.Background = background.ToSolidBrush();