xtd 0.2.0
Loading...
Searching...
No Matches

◆ dash_style() [1/2]

xtd::drawing::drawing_2d::dash_style xtd::drawing::pen::dash_style ( ) const
noexcept

Gets the style used for dashed lines drawn with this xtd::drawing::pen.

Returns
A xtd::drawing::drawing_2d::dash_style that represents the style used for dashed lines drawn with this xtd::drawing::pen.
Remarks
A value of xtd::drawing::drawing_2d::dash_style::custom for this property specifies that a custom pattern of dashes and spaces, defined by the xtd::drawing::pendash_pattern property, makes up lines drawn with this xtd::drawing::pen. If the value of this property is xtd::drawing::drawing_2d::dash_style::custom and the value of the xtd::drawing::pen::dash_pattern property is empty, the pen draws solid lines.
Examples
draw_ellipse.cpp, draw_line.cpp, draw_rectangle.cpp, and draw_rounded_rectangle.cpp.