System::Drawing::Graphics::MeasureString methode

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, int, System::SharedPtr<StringFormat> const&) const method

Retourneert een grootte van de opgegeven tekenreeks wanneer deze wordt getekend in het opgegeven lettertype in het opgegeven formaat.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, int width, System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
ParameterTypeBeschrijving
strString const&De string waarvan de grootte moet worden berekend
lettertypeSystem::SharedPtr<Font> const&Het lettertype dat wordt gebruikt om de string te tekenen
widthintDe maximale breedte van de string
stringFormatSystem::SharedPtr<StringFormat> const&Specificeert het stringformaat

ReturnValue

Een SizeF object dat de grootte van de string weergeeft in de meeteenheden gespecificeerd door de PageUnit-eigenschap van het huidige Grapphics-object.

Zie ook

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

Retourneert een grootte van de opgegeven tekenreeks wanneer deze wordt getekend in het opgegeven lettertype in het opgegeven formaat.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, PointF const &origin=PointF(0, 0), System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
ParameterTypeBeschrijving
strString const&De string waarvan de grootte moet worden berekend
lettertypeSystem::SharedPtr<Font> const&Het lettertype dat wordt gebruikt om de string te tekenen
originPointF const&Specificeert de locatie van de linkerbovenhoek van de string
stringFormatSystem::SharedPtr<StringFormat> const&Specificeert het stringformaat

ReturnValue

Een SizeF object dat de grootte van de string weergeeft in de meeteenheden gespecificeerd door de PageUnit-eigenschap van het huidige Grapphics-object.

Zie ook

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, SizeF const&, System::SharedPtr<StringFormat> const&, int&, int&) const method

NOG NIET GEÏMPLENTEERD.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, SizeF const &layoutArea, System::SharedPtr<StringFormat> const &stringFormat, int &charactersFitted, int &linesFilled) const

Zie ook

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, SizeF const&, System::SharedPtr<StringFormat> const&) const method

Retourneert een grootte van de opgegeven tekenreeks wanneer deze wordt getekend in het opgegeven lettertype in het opgegeven formaat.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, SizeF const &layoutArea, System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
ParameterTypeBeschrijving
strString const&De string waarvan de grootte moet worden berekend
lettertypeSystem::SharedPtr<Font> const&Het lettertype dat wordt gebruikt om de string te tekenen
layoutAreaSizeF const&Het maximale lay-outgebied van de string
stringFormatSystem::SharedPtr<StringFormat> const&Specificeert het stringformaat

ReturnValue

Een SizeF object dat de grootte van de string weergeeft in de meeteenheden gespecificeerd door de PageUnit-eigenschap van het huidige Grapphics-object.

Zie ook