TextField.MeasureDisplayText Method
Helper method to measure given text.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
Protected Function MeasureDisplayText ( _
displayText As String, _
font As Font, _
format As StringFormat, _
maximumSize As SizeD _
) As SizeD
protected SizeD MeasureDisplayText(
string displayText,
Font font,
StringFormat format,
SizeD maximumSize
)
protected:
SizeD MeasureDisplayText(
String^ displayText,
Font^ font,
StringFormat^ format,
SizeD maximumSize
)
member MeasureDisplayText :
displayText:string *
font:Font *
format:StringFormat *
maximumSize:SizeD -> SizeD
protected function MeasureDisplayText(
displayText : String,
font : Font,
format : StringFormat,
maximumSize : SizeD
) : SizeD
Parameters
- displayText
Type: System.String
- font
Type: System.Drawing.Font
- format
Type: System.Drawing.StringFormat
- maximumSize
Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.