2 using namespace System;
9 public:
enum class HorizAlign { Left, Center, Right };
10 public:
enum class VertAlign { Top, Middle, BaseLine, Bottom };
11 public:
void SetColor(System::Drawing::Color c);
12 public:
void DrawLine(
float x1,
float y1,
float x2,
float y2);
13 public:
void DrawRect(
float x,
float y,
float width,
float height);
14 public:
void FillRect(
float x,
float y,
float width,
float height);
15 public:
void DrawEllipse(
float x,
float y,
float width,
float height);
16 public:
void FillEllipse(
float x,
float y,
float width,
float height);
17 public:
void DrawPolyline(array<Drawing::PointF>^ points);
18 public:
void FillPolygon(array<Drawing::PointF>^ points);
20 public:
float GetStrokeWidth();
21 public:
void SetStrokeWidth(
float strokeWidth);
23 public:
void SetFont(String^ fontName,
float fontSize, System::Drawing::FontStyle fontStyle);
27 public: System::Drawing::Rectangle DrawString(String^ text,
float x,
float y, HorizAlign horzAlign, VertAlign vertAlign );