Share via


TextField.GetDisplayText Method

Gets the text to be displayed by this field.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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: 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