System::Drawing::Graphics::MeasureString method
Contents
[
Hide
]Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, int, System::SharedPtr<StringFormat> const&) const method
Returns a size of the specified string when drawn in the specified font in the specified format.
SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, int width, System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
Parameter | Type | Description |
---|---|---|
str | String const& | The string whose size to calculate |
font | System::SharedPtr<Font> const& | The font used to draw the string |
width | int | The maximum width of the string |
stringFormat | System::SharedPtr<StringFormat> const& | Specifies the string format |
ReturnValue
A SizeF object that represents the size of the string in the measurment units specified by the PageUnit property of the current Grapphics object.
See Also
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.TeX for C++
Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, PointF const&, System::SharedPtr<StringFormat> const&) const method
Returns a size of the specified string when drawn in the specified font in the specified format.
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 | Description |
---|---|---|
str | String const& | The string whose size to calculate |
font | System::SharedPtr<Font> const& | The font used to draw the string |
origin | PointF const& | Specifies the location of the upper left corner of the string |
stringFormat | System::SharedPtr<StringFormat> const& | Specifies the string format |
ReturnValue
A SizeF object that represents the size of the string in the measurment units specified by the PageUnit property of the current Grapphics object.
See Also
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class PointF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.TeX for C++
Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, SizeF const&, System::SharedPtr<StringFormat> const&, int&, int&) const method
NOT IMPLEMENTED.
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
See Also
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.TeX for C++
Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, SizeF const&, System::SharedPtr<StringFormat> const&) const method
Returns a size of the specified string when drawn in the specified font in the specified format.
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 | Description |
---|---|---|
str | String const& | The string whose size to calculate |
font | System::SharedPtr<Font> const& | The font used to draw the string |
layoutArea | SizeF const& | The maximum layout area of the string |
stringFormat | System::SharedPtr<StringFormat> const& | Specifies the string format |
ReturnValue
A SizeF object that represents the size of the string in the measurment units specified by the PageUnit property of the current Grapphics object.
See Also
- Class SizeF
- Class String
- Typedef SharedPtr
- Class Font
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.TeX for C++