[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.IPaintingContext.ToGdiBrush

ToGdiBrush Method

ToGdiBrush(Fill, Rectangle, out bool)

Gets the corresponding GDI+ brush.

Declaration
Brush ToGdiBrush(Fill fill, Rectangle rect, out bool disposable)
Function ToGdiBrush(fill As Fill, rect As Rectangle, ByRef disposable As Boolean) As Brush
Parameters
Type Name Description
Fill fill

The brush data.

Rectangle rect

The painting rectangle.

bool disposable

true if the brush can be disposable; otherwise, false.

Returns
Type Description
Brush

A System.Drawing.Brush object represents the corresponding GDI+ brush.

ToGdiBrush(Brush, Rectangle, GraphicsPath)

Gets the corresponding GDI+ brush.

Declaration
Brush ToGdiBrush(Brush brush, Rectangle rect, GraphicsPath graphicsPath = null)
Function ToGdiBrush(brush As Brush, rect As Rectangle, Optional graphicsPath As GraphicsPath = Nothing) As Brush
Parameters
Type Name Description
Brush brush

The brush data.

Rectangle rect

The painting rectangle.

GraphicsPath graphicsPath

The painting graphic path.

Returns
Type Description
Brush

A System.Drawing.Brush object represents the corresponding GDI+ brush.