طريقة System::Drawing::Graphics::DrawString
محتويات
[
يخفي
]Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, float, float, const System::SharedPtr<System::Drawing::StringFormat>&) method
يرسم السلسلة المحددة في الموقع المحدد باستخدام الخط والفرشاة المحددين.
void System::Drawing::Graphics::DrawString(const String &str, const SharedPtr<Font> &font, const SharedPtr<Brush> &brush, float x, float y, const System::SharedPtr<System::Drawing::StringFormat> &stringFormat=nullptr)
| Parameter | Type | الوصف |
|---|---|---|
| str | const String& | السلسلة المراد رسمها |
| الخط | const SharedPtr<Font>& | خط لاستخدامه |
| brush | const SharedPtr<Brush>& | كائن Brush لاستخدامه في الرسم |
| x | عدد عائم | الإحداثي X لموقع الزاوية العلوية اليسرى للسلسلة المرسومة |
| y | عدد عائم | الإحداثي Y لموقع الزاوية العلوية اليسرى للسلسلة المرسومة |
| stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | حدد تنسيق السلسلة |
انظر أيضًا
- Class String
- Typedef SharedPtr
- Class Font
- Class Brush
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++
Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, PointF, const System::SharedPtr<System::Drawing::StringFormat>&) method
يرسم السلسلة المحددة في الموقع المحدد باستخدام الخط والفرشاة المحددين.
void System::Drawing::Graphics::DrawString(const String &str, const SharedPtr<Font> &font, const SharedPtr<Brush> &brush, PointF topLeft, const System::SharedPtr<System::Drawing::StringFormat> &stringFormat=nullptr)
| Parameter | Type | الوصف |
|---|---|---|
| str | const String& | السلسلة المراد رسمها |
| الخط | const SharedPtr<Font>& | خط لاستخدامه |
| brush | const SharedPtr<Brush>& | كائن Brush لاستخدامه في الرسم |
| topLeft | PointF | يحدد موقع الزاوية العلوية اليسرى للسلسلة المرسومة |
| stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | حدد تنسيق السلسلة |
انظر أيضًا
- Class String
- Typedef SharedPtr
- Class Font
- Class Brush
- Class PointF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++
Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, RectangleF, const System::SharedPtr<System::Drawing::StringFormat>&) method
يرسم السلسلة المحددة في المستطيل المحدد باستخدام الخط والفرشاة المحددين.
void System::Drawing::Graphics::DrawString(const String &str, const SharedPtr<Font> &font, const SharedPtr<Brush> &brush, RectangleF layoutRectangle, const System::SharedPtr<System::Drawing::StringFormat> &stringFormat=nullptr)
| Parameter | Type | الوصف |
|---|---|---|
| str | const String& | السلسلة المراد رسمها |
| الخط | const SharedPtr<Font>& | خط لاستخدامه |
| brush | const SharedPtr<Brush>& | كائن Brush لاستخدامه في الرسم |
| layoutRectangle | RectangleF | يحدد مستطيلًا لرسم السلسلة داخله |
| stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | حدد تنسيق السلسلة |
انظر أيضًا
- Class String
- Typedef SharedPtr
- Class Font
- Class Brush
- Class RectangleF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++