TextField.MeasureDisplayText(String, Font, StringFormat, SizeD) Method

Definition

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.

Applies to