TextField.MeasureDisplayText(String, Font, StringFormat, SizeD) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper method to measure given text.
protected:
Microsoft::VisualStudio::Modeling::Diagrams::SizeD MeasureDisplayText(System::String ^ displayText, System::Drawing::Font ^ font, System::Drawing::StringFormat ^ format, Microsoft::VisualStudio::Modeling::Diagrams::SizeD maximumSize);
protected Microsoft.VisualStudio.Modeling.Diagrams.SizeD MeasureDisplayText (string displayText, System.Drawing.Font font, System.Drawing.StringFormat format, Microsoft.VisualStudio.Modeling.Diagrams.SizeD maximumSize);
member this.MeasureDisplayText : string * System.Drawing.Font * System.Drawing.StringFormat * Microsoft.VisualStudio.Modeling.Diagrams.SizeD -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Protected Function MeasureDisplayText (displayText As String, font As Font, format As StringFormat, maximumSize As SizeD) As SizeD
Parameters
- displayText
- String
- font
- Font
- format
- StringFormat
- maximumSize
- SizeD
Returns
Size of resulting text.