Back to Devexpress

AppearanceObject.GetBorderPen(GraphicsCache) Method

windowsforms-devexpress-dot-utils-dot-appearanceobject-dot-getborderpen-x28-devexpress-dot-utils-dot-drawing-dot-graphicscache-x29.md

latest2.6 KB
Original Source

AppearanceObject.GetBorderPen(GraphicsCache) Method

Gets the pen used to draw the border’s lines and curves.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public Pen GetBorderPen(
    GraphicsCache cache
)
vb
Public Function GetBorderPen(
    cache As GraphicsCache
) As Pen

Parameters

NameTypeDescription
cacheGraphicsCache

A GraphicsCache object that provides access to the pens and brushes used for painting.

|

Returns

TypeDescription
Pen

A Pen object representing a pen specified by the appearance object’s settings.

|

Remarks

If the cache parameter’s value is not a null reference, the GetBorderPen method uses the GraphicsCache object to obtain the pen whose color is specified by the border color settings of the current appearance object. This lets you obtain the pen more quickly, as it may already be stored within the cache. Otherwise, a new Pen object with appropriate settings is created and returned.

Use the AppearanceObject.GetBorderColor method to obtain the border color specified by the appearance object’s settings.

See Also

GetBorderColor

BorderColor

GetBorderBrush(GraphicsCache)

AppearanceObject Class

AppearanceObject Members

DevExpress.Utils Namespace