Partager via


TextField.EditValue Method

Definition

Overloads

EditValue(ShapeElement, DiagramClientView)

Invokes the in-place editor.

EditValue(ShapeElement, DiagramClientView, PointD)

Invokes the in-place editor, setting the caret using the specified mouse position.

EditValue(ShapeElement, DiagramClientView, String)

Invokes the in-place editor, replacing the text with the specified text.

EditValue(ShapeElement, DiagramClientView)

Invokes the in-place editor.

public:
 override void EditValue(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view);
public override void EditValue (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view);
override this.EditValue : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView -> unit
Public Overrides Sub EditValue (parentShape As ShapeElement, view As DiagramClientView)

Parameters

parentShape
ShapeElement

The ShapeElement instance that contains this field.

view
DiagramClientView

The view that will host the editor.

Applies to

EditValue(ShapeElement, DiagramClientView, PointD)

Invokes the in-place editor, setting the caret using the specified mouse position.

public:
 override void EditValue(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, Microsoft::VisualStudio::Modeling::Diagrams::PointD mousePosition);
public override void EditValue (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, Microsoft.VisualStudio.Modeling.Diagrams.PointD mousePosition);
override this.EditValue : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> unit
Public Overrides Sub EditValue (parentShape As ShapeElement, view As DiagramClientView, mousePosition As PointD)

Parameters

parentShape
ShapeElement

The ShapeElement instance that contains this field.

view
DiagramClientView

The view that will host the editor.

mousePosition
PointD

The mouse position relative to the top-left of the diagram in world units.

Applies to

EditValue(ShapeElement, DiagramClientView, String)

Invokes the in-place editor, replacing the text with the specified text.

public:
 void EditValue(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, System::String ^ replacementText);
public void EditValue (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, string replacementText);
override this.EditValue : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * string -> unit
Public Sub EditValue (parentShape As ShapeElement, view As DiagramClientView, replacementText As String)

Parameters

parentShape
ShapeElement

The ShapeElement instance that contains this field.

view
DiagramClientView

The view that will host the editor.

replacementText
String

The text that should replace the contents of the editor.

Applies to