void button1_Click(
object& sender,
const event_args&
e) {
graphics form_graphics = create_graphics();
if (point1 == point2) {
form_graphics.
draw_string(
string::format(
"point1.x: {}, point2.x: {}, point1.y: {}, point2.y {}", point1.x(), point2.x(), point1.y(), point2.y()),
font(),
brushes::black,
point_f(10, 70));
}
}
static xtd::drawing::solid_brush black()
A system-defined brush object.
Defines a particular format for text, including font face, size, and style attributes....
Definition font.h:45
void draw_string(const xtd::string &s, const xtd::drawing::font &font, const xtd::drawing::brush &brush, const xtd::drawing::rectangle_f &layout_rectangle)
Draws the specified text string at the specified rectangle with the specified xtd::drawing::brush and...
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.h:35
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:31
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18