다음을 통해 공유


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

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD

.NET Framework Security

See Also

Reference

TextField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace