Vcl.Graphics.TPen.Style

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Style: TPenStyle read GetStyle write SetStyle default psSolid;

C++

__property TPenStyle Style = {read=GetStyle, write=SetStyle, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TPen

Description

Determines the style in which the pen draws lines.

Use Style to draw a dotted or dashed line, or to omit the line that appears as a frame around shapes.

Note: Only the psInsideFrame style will produce a dithered color to match a Color property that is not in the color table. All others choose the closest color from the Windows color table.

Note: Dotted or dashed pen styles are not available when the Width property is not 1.

See Also

Code Examples