Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxGetPenData(HPEN,TLogPen) Method

Returns settings of a pen object identified by its handle.

#Declaration

Delphi
function dxGetPenData(APenHandle: HPEN; out ALogPen: TLogPen): Boolean;

#Parameters

Name Type
APenHandle HPEN
ALogPen TLogPen

#Returns

Type
Boolean

#Remarks

Call this function to obtain the style, width, and color of the pen object whose handle is passed as the APenHandle parameter. The function stores the pen settings to the ALogPen parameter and returns True if these settings are found. Otherwise, False is returned.

See Also