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
| Parameter | Type | Beschrijving |
|---|---|---|
| str | String const& | De string waarvan de grootte moet worden berekend |
| lettertype | System::SharedPtr<Font> const& | Het lettertype dat wordt gebruikt om de string te tekenen |
| width | int | De maximale breedte van de string |
| stringFormat | System::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
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++
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
| Parameter | Type | Beschrijving |
|---|---|---|
| str | String const& | De string waarvan de grootte moet worden berekend |
| lettertype | System::SharedPtr<Font> const& | Het lettertype dat wordt gebruikt om de string te tekenen |
| origin | PointF const& | Specificeert de locatie van de linkerbovenhoek van de string |
| stringFormat | System::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
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class PointF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++
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
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++
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
| Parameter | Type | Beschrijving |
|---|---|---|
| str | String const& | De string waarvan de grootte moet worden berekend |
| lettertype | System::SharedPtr<Font> const& | Het lettertype dat wordt gebruikt om de string te tekenen |
| layoutArea | SizeF const& | Het maximale lay-outgebied van de string |
| stringFormat | System::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
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++