AppearanceObject.GetBackPen(GraphicsCache) Method
Gets the pen used to draw the element’s background lines and curves.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public Pen GetBackPen(
GraphicsCache cache
)
#Parameters
Name | Type | Description |
---|---|---|
cache | Graphics |
A Graphics |
#Returns
Type | Description |
---|---|
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 GetBackPen method uses the GraphicsCache object to obtain the pen whose color is specified by the background 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.GetBackColor method to obtain the background color specified by the appearance object’s settings.