System::Drawing::Graphics::DrawString methode

Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, float, float, const System::SharedPtr<System::Drawing::StringFormat>&) method

Tekent de opgegeven tekenreeks op de opgegeven locatie met het opgegeven lettertype en de opgegeven penseel.

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)
ParameterTypeBeschrijving
strconst String&De tekenreeks om te tekenen
lettertypeconst SharedPtr<Font>&Een lettertype om te gebruiken
brushconst SharedPtr<Brush>&Een Brush object om te gebruiken voor het tekenen
xfloatDe X-coördinaat van de locatie van de linkerbovenhoek van de getekende tekenreeks
yfloatDe Y-coördinaat van de locatie van de linkerbovenhoek van de getekende tekenreeks
stringFormatconst System::SharedPtr<System::Drawing::StringFormat>&Specificeert het formaat van de tekenreeks

Zie ook

Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, PointF, const System::SharedPtr<System::Drawing::StringFormat>&) method

Tekent de opgegeven tekenreeks op de opgegeven locatie met het opgegeven lettertype en de opgegeven penseel.

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)
ParameterTypeBeschrijving
strconst String&De tekenreeks om te tekenen
lettertypeconst SharedPtr<Font>&Een lettertype om te gebruiken
brushconst SharedPtr<Brush>&Een Brush object om te gebruiken voor het tekenen
topLeftPointFSpecificeert de locatie van de linkerbovenhoek van de getekende tekenreeks
stringFormatconst System::SharedPtr<System::Drawing::StringFormat>&Specificeert het formaat van de tekenreeks

Zie ook

Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, RectangleF, const System::SharedPtr<System::Drawing::StringFormat>&) method

Tekent de opgegeven tekenreeks in het opgegeven rechthoek met het opgegeven lettertype en penseel.

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)
ParameterTypeBeschrijving
strconst String&De tekenreeks om te tekenen
lettertypeconst SharedPtr<Font>&Een lettertype om te gebruiken
brushconst SharedPtr<Brush>&Een Brush object om te gebruiken voor het tekenen
layoutRectangleRectangleFSpecificeert een rechthoek om de tekenreeks in te tekenen
stringFormatconst System::SharedPtr<System::Drawing::StringFormat>&Specificeert het formaat van de tekenreeks

Zie ook