Share via


InPlaceTextEditor.CanEditValue Method

Definition

Returns a value indicating whether the value of this field can be edited.

public:
 bool CanEditValue(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field, Microsoft::VisualStudio::Modeling::Diagrams::ShapeSubField ^ subfield, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view);
public bool CanEditValue (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field, Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField subfield, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view);
member this.CanEditValue : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView -> bool
Public Function CanEditValue (parentShape As ShapeElement, field As ShapeField, subfield As ShapeSubField, view As DiagramClientView) As Boolean

Parameters

parentShape
ShapeElement

The ShapeElement instance that contains this field.

field
ShapeField
subfield
ShapeSubField
view
DiagramClientView

The view that will become the parent of the editor.

Returns

true if the value of this field can be edited.

Applies to