Freigeben über


TextField.GetDisplayText Method

Gets the text to be displayed by this field.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaration
Public Overridable Function GetDisplayText ( _
    parentShape As ShapeElement _
) As String
public virtual string GetDisplayText(
    ShapeElement parentShape
)
public:
virtual String^ GetDisplayText(
    ShapeElement^ parentShape
)
abstract GetDisplayText : 
        parentShape:ShapeElement -> string 
override GetDisplayText : 
        parentShape:ShapeElement -> string 
public function GetDisplayText(
    parentShape : ShapeElement
) : String

Parameters

Return Value

Type: System.String

Remarks

Override this method to customize your text prior to drawing. By default it returns GetValue(shapeElement).ToString()

.NET Framework Security

See Also

Reference

TextField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace