InPlaceTextEditor.CanEditValue 方法

定义

返回一个值,该值指示是否可以编辑此字段的值。

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

参数

parentShape
ShapeElement

包含此字段的 ShapeElement 实例。

field
ShapeField
subfield
ShapeSubField
view
DiagramClientView

将成为编辑器父对象的视图。

返回

Boolean

如果可以编辑此字段的值,则为 true。

适用于